Linux 上的 VM 磁盘的可伸缩性和性能目标Scalability and performance targets for VM disks on Linux

Azure 虚拟机支持附加许多的数据磁盘。An Azure virtual machine supports attaching a number of data disks. 本文介绍 VM 的数据磁盘的可伸缩性和性能目标。This article describes scalability and performance targets for a VM's data disks. 使用这些目标可帮助确定满足性能和容量要求所需的磁盘数量和磁盘类型。Use these targets to help decide the number and type of disk that you need to meet your performance and capacity requirements.

Important

为了获得最佳性能,需要限制附加到虚拟机的、重度使用的磁盘数,以避免可能的性能限制。For optimal performance, limit the number of highly utilized disks attached to the virtual machine to avoid possible throttling. 如果附加的所有磁盘未在同时重度使用,则虚拟机可以支持更多的磁盘。If all attached disks are not highly utilized at the same time, then the virtual machine can support a larger number of disks.

  • 对于 Azure 托管磁盘:For Azure Managed Disks:
资源Resource 默认限制Default Limit 最大限制Maximum Limit
标准托管磁盘Standard Managed Disks 10,00010,000 50,00050,000
标准 SSD 托管磁盘Standard SSD Managed Disks 10,00010,000 50,00050,000
高级托管磁盘Premium Managed Disks 10,00010,000 50,00050,000
标准 LRS 快照Standard_LRS Snapshots 10,00010,000 50,00050,000
标准 ZRS 快照Standard_ZRS Snapshots 10,00010,000 50,00050,000
托管映像Managed Image 10,00010,000 50,00050,000
  • 对于标准存储帐户: 标准存储帐户的总请求率上限为 20,000 IOPS。For standard storage accounts: A standard storage account has a maximum total request rate of 20,000 IOPS. 在标准存储帐户中,所有虚拟机磁盘的 IOPS 总数不应超过此限制。The total IOPS across all of your virtual machine disks in a standard storage account should not exceed this limit.

    可以根据请求率的限制,大致计算单个标准存储帐户可支持的重度使用磁盘数。You can roughly calculate the number of highly utilized disks supported by a single standard storage account based on the request rate limit. 例如,对于基本层 VM,重度使用的磁盘数上限约为 66(每个磁盘 20,000/300 IOPS);对于标准层 VM,约为 40(每个磁盘 20,000/500 IOPS)。For example, for a Basic Tier VM, the maximum number of highly utilized disks is about 66 (20,000/300 IOPS per disk), and for a Standard Tier VM, it is about 40 (20,000/500 IOPS per disk).

  • 对于高级存储帐户: 高级存储帐户的总吞吐量速率上限为 50 Gbps。For premium storage accounts: A premium storage account has a maximum total throughput rate of 50 Gbps. 所有 VM 磁盘的总吞吐量不应超过此限制。The total throughput across all of your VM disks should not exceed this limit.

请参阅 Linux VM 大小了解其他详细信息。See Linux VM sizes for additional details.

托管虚拟机磁盘Managed virtual machine disks

标准 HDD 托管磁盘Standard HDD Managed Disks

标准磁盘类型Standard Disk Type  S4S4               S6S6               S10S10              S15S15 S20S20              S30S30              S40S40              S50S50             
磁盘大小 (GiB)Disk size in GiB          3232             6464             128128            256256 512512            1,0241,024    2,0482,048     4,0954,095   
每个磁盘的 IOPSIOPS per disk       最大 500Up to 500              最大 500Up to 500              最大 500Up to 500              最大 500Up to 500 最大 500Up to 500              最大 500Up to 500              最大 500Up to 500             最大 500Up to 500             
每个磁盘的吞吐量Throughput per disk 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec 最多 60 MiB/秒Up to 60 MiB/sec

标准 SSD 托管磁盘Standard SSD Managed Disks

标准 SSD 磁盘类型Standard SSD Disk Type E4E4 E6E6 E10E10 E15E15 E20E20 E30E30 E40E40 E50E50
磁盘大小 (GiB)Disk size in GiB 3232 6464 128128 256256 512512 1,0241,024 2,0482,048 4,0954,095
每个磁盘的 IOPSIOPS per disk 最多 120Up to 120 最多 240Up to 240 最大 500Up to 500 最大 500Up to 500 最大 500Up to 500 最大 500Up to 500 最大 500Up to 500 最大 500Up to 500
每个磁盘的吞吐量Throughput per disk 最多 25 MB/秒Up to 25 MB/sec 最多 50 MB/秒Up to 50 MB/sec 最多 60 MB/秒Up to 60 MB/sec 最多 60 MB/秒Up to 60 MB/sec 最多 60 MB/秒Up to 60 MB/sec 最多 60 MB/秒Up to 60 MB/sec 最多 60 MB/秒Up to 60 MB/sec 最多 60 MB/秒Up to 60 MB/sec

高级 SSD 托管磁盘:每个磁盘的限制Premium SSD Managed Disks: per disk limits

高级磁盘类型Premium Disk Type  P4P4               P6P6               P10P10              P15P15 P20P20              P30P30              P40P40              P50P50             
磁盘大小 (GiB)Disk size in GiB           3232             6464             128128            256256 512512            1,0241,024    2,0482,048     4,0954,095   
每个磁盘的 IOPSIOPS per disk       最多 120Up to 120 最多 240Up to 240              最大 500Up to 500              最多 1,100Up to 1,100 最多 2,300Up to 2,300              最多 5,000Up to 5,000              最多 7,500Up to 7,500             最多 7,500Up to 7,500             
每个磁盘的吞吐量Throughput per disk 最多 25 MiB/秒Up to 25 MiB/sec 最多 50 MiB/秒Up to 50 MiB/sec 最多 100 MiB/秒Up to 100 MiB/sec 最多 125 MiB/秒Up to 125 MiB/sec 最多 150 MiB/秒Up to 150 MiB/sec 最多 200 MiB/秒Up to 200 MiB/sec 最多 250 MiB/秒Up to 250 MiB/sec 最多 250 MiB/秒Up to 250 MiB/sec

非托管虚拟机磁盘Unmanaged virtual machine disks

标准非托管虚拟机磁盘:每个磁盘的限制Standard unmanaged virtual machine disks: per disk limits

VM 层VM Tier 基本层 VMBasic Tier VM 标准层 VMStandard Tier VM
磁盘大小Disk size 4095 GB4095 GB 4095 GB4095 GB
每个持久性磁盘最大 8 KB IOPSMax 8 KB IOPS per persistent disk 300300 500500
执行最大 IOPS 的磁盘数上限Max number of disks performing max IOPS 6666 4040

高级非托管虚拟机磁盘:每个帐户的限制Premium unmanaged virtual machine disks: per account limits

资源Resource 默认限制Default Limit
每个帐户的总磁盘容量Total disk capacity per account 35 TB35 TB
每个帐户的总快照容量Total snapshot capacity per account 10 TB10 TB
每个帐户的最大带宽(传入 + 传出1Max bandwidth per account (ingress + egress1) <=50 Gbps<=50 Gbps

1“传入”是指发送到存储帐户的所有数据(请求)。1Ingress refers to all data (requests) being sent to a storage account. “传出”是指从存储帐户接收的所有数据(响应)。Egress refers to all data (responses) being received from a storage account.

高级非托管虚拟机磁盘:每个磁盘的限制Premium unmanaged virtual machine disks: per disk limits

高级存储磁盘类型Premium Storage Disk Type P10P10 P20P20 P30P30 P40P40 P50P50
磁盘大小Disk size 128 GiB128 GiB 512 GiB512 GiB 1024 GiB (1 TB)1024 GiB (1 TB) 2048 GiB (2 TB)2048 GiB (2 TB) 4095 GiB (4 TB)4095 GiB (4 TB)
每个磁盘的最大 IOPSMax IOPS per disk 500500 23002300 50005000 75007500 75007500
每个磁盘的最大吞吐量Max throughput per disk 100 MB/秒100 MB/s 150 MB/秒150 MB/s 200 MB/秒200 MB/s 250 MB/秒250 MB/s 250 MB/秒250 MB/s
每个存储帐户的磁盘的最大数目Max number of disks per storage account 280280 7070 3535 1717 88

另请参阅See also

Azure 订阅和服务限制、配额和约束Azure subscription and service limits, quotas, and constraints