Azure 文件可伸缩性和性能目标Azure Files scalability and performance targets

Azure 文件在云中提供完全托管的文件共享,这些共享项可通过行业标准 SMB 协议进行访问。Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard SMB protocol. 本文讨论了 Azure 文件的可伸缩性和性能目标。This article discusses the scalability and performance targets for Azure Files.

此处列出的可伸缩性和性能目标是高端目标,但可能会受部署中的其他变量影响。The scalability and performance targets listed here are high-end targets, but may be affected by other variables in your deployment. 例如,除了受限于托管着 Azure 文件服务的服务器之外,针对文件的吞吐量还可能会受限于可变的网络带宽。For example, the throughput for a file may also be limited by your available network bandwidth, not just the servers hosting the Azure Files service. 强烈建议你对使用模式进行测试,以确定 Azure 文件的可伸缩性和性能是否满足你的要求。We strongly recommend testing your usage pattern to determine whether the scalability and performance of Azure Files meet your requirements. 随着时间的推移,我们也一直在努力提高这些限制。We are also committed to increasing these limits over time.

Azure 存储帐户规模目标Azure storage account scale targets

Azure 文件共享的父资源是 Azure 存储帐户。The parent resource for an Azure file share is an Azure storage account. 存储帐户表示 Azure 中的一个存储池,该存储池可供包括 Azure 文件在内多个存储服务用来存储数据。A storage account represents a pool of storage in Azure that can be used by multiple storage services, including Azure Files, to store data. 在存储帐户中存储数据的其他服务有 Azure Blob 存储、Azure 队列存储和 Azure 表存储。Other services that store data in storage accounts are Azure Blob storage, Azure Queue storage, and Azure Table storage. 以下目标适用于在存储帐户中存储数据的所有存储服务:The following targets apply all storage services storing data in a storage account:

下表描述了 Azure 常规用途 v1、v2、Blob 存储和块 blob 存储帐户的默认限制。The following table describes default limits for Azure general-purpose v1, v2, Blob storage, and block blob storage accounts. “流入量”限制是指针对发送到存储帐户的所有数据的限制。The ingress limit refers to all data that is sent to a storage account. “流出量”限制是指针对从存储帐户接收的所有数据的限制。The egress limit refers to all data that is received from a storage account.

资源Resource 限制Limit
每个订阅每个区域的存储帐户数,包括标准存储帐户和高级存储帐户。Number of storage accounts per region per subscription, including standard, and premium storage accounts. 250250
最大存储帐户容量Maximum storage account capacity 5 PiB 15 PiB 1
每个存储帐户的 Blob 容器、Blob、文件共享、表、队列、实体或消息数目上限Maximum number of blob containers, blobs, file shares, tables, queues, entities, or messages per storage account 无限制No limit
每个存储帐户的最大请求速率1Maximum request rate1 per storage account 每秒 20,000 个请求20,000 requests per second
每个存储帐户的最大入口1Maximum ingress1 per storage account 如果已启用 RA-GRS/GRS,则为 5 Gbps;对于 LRS,为 10 Gbps25 Gbps if RA-GRS/GRS is enabled, 10 Gbps for LRS2
常规用途 v2 存储帐户和 Blob 存储帐户的最大出口(所有区域)Maximum egress for general-purpose v2 and Blob storage accounts (all regions) 50 Gbps50 Gbps
常规用途 v1 存储帐户的最大出口Maximum egress for general-purpose v1 storage accounts 如果已启用 RA-GRS/GRS,则为 10 Gbps;对于 LRS,为 15 Gbps210 Gbps if RA-GRS/GRS is enabled, 15 Gbps for LRS2
每个存储帐户的最大虚拟网络规则数Maximum number of virtual network rules per storage account 200200
每个存储帐户的最大 IP 地址规则数Maximum number of IP address rules per storage account 200200

1 Azure 存储标准帐户根据请求支持更高的容量上限和更高的流入量上限。1 Azure Storage standard accounts support higher capacity limits and higher limits for ingress by request. 若要请求增加帐户限制,请与 Azure 支持联系。To request an increase in account limits, contact Azure Support.

2 如果存储帐户启用了异地冗余存储 (RA-GRS) 的读取访问权限,则辅助位置的出口目标与主位置的出口目标相同。2 If your storage account has read-access enabled with geo-redundant storage (RA-GRS), then the egress targets for the secondary location are identical to those of the primary location. 有关详细信息,请参阅 Azure 存储复制For more information, see Azure Storage replication.


大多数情况下,Azure 建议使用常规用途 v2 存储帐户。Azure recommends that you use a general-purpose v2 storage account for most scenarios. 可以轻松将常规用途 v1 或 Azure Blob 存储帐户升级到常规用途 v2 帐户,无需停机且无需复制数据。You can easily upgrade a general-purpose v1 or an Azure Blob storage account to a general-purpose v2 account with no downtime and without the need to copy data. 有关详细信息,请参阅升级到常规用途 v2 存储帐户For more information, see Upgrade to a general-purpose v2 storage account.

所有存储帐户都在平面网络拓扑上运行,而无论它们是何时创建的。All storage accounts run on a flat network topology regardless of when they were created. 有关 Azure 存储的扁平网络体系结构和可伸缩性的详细信息,请参阅 Azure 存储:具有高度一致性的高可用云存储服务For more information on the Azure Storage flat network architecture and on scalability, see Azure Storage: A Highly Available Cloud Storage Service with Strong Consistency.

仅当使用 Azure 资源管理器对 Azure 存储执行管理操作时,以下限制才适用。The following limits apply only when you perform management operations by using Azure Resource Manager with Azure Storage.

资源Resource 限制Limit
存储帐户管理操作数(读取)Storage account management operations (read) 每 5 分钟 800 次800 per 5 minutes
存储帐户管理操作数(写入)Storage account management operations (write) 每秒 10 次/每小时 1200 次10 per second / 1200 per hour
存储帐户管理操作数(列出)Storage account management operations (list) 每 5 分钟 100 次100 per 5 minutes


其他存储服务的常规用途存储帐户利用率会影响存储帐户中的 Azure 文件共享。General purpose storage account utilization from other storage services affects your Azure file shares in your storage account. 例如,如果由于 Azure Blob 存储而达到了最大存储帐户容量,则将无法在 Azure 文件共享上创建新文件,即使 Azure 文件共享低于最大共享大小。For example, if you reach the maximum storage account capacity with Azure Blob storage, you will not be able to create new files on your Azure file share, even if your Azure file share is below the maximum share size.

Azure 文件规模目标Azure Files scale targets

对于 Azure 文件存储,需要考虑三类限制:存储帐户、共享和文件。There are three categories of limitations to consider for Azure Files: storage accounts, shares, and files.

例如:使用高级文件共享时,单个共享可以达到 100,000 IOPS,单个文件最多可以扩展到 5,000 IOPS。For example: With premium file shares, a single share can achieve 100,000 IOPS and a single file can scale up to 5,000 IOPS. 因此,如果一个共享中有三个文件,则可以从该共享获取的最大 IOPS 为 15,000。So, if you have three files in one share, the maximum IOPS you can get from that share is 15,000.

标准存储帐户限制Standard storage account limits

有关这些限制,请参阅 Azure 存储帐户规模目标部分。See the Azure storage account scale targets section for these limits.

高级 FileStorage 帐户限制Premium FileStorage account limits

高级文件使用名为“FileStorage” 的唯一存储帐户。Premium files use a unique storage account called FileStorage. 此帐户类型适用于具有高 IOPS、高吞吐量和一致低延迟的工作负荷。This account type is designed for workloads with high IOPS, high throughput with consistent low-latency. 高级文件存储使用预配的共享大小进行缩放。Premium file storage scales with the provisioned share size.

区域Area 目标Target
最大预配大小Max provisioned size 100 TiB100 TiB
共享Shares 无限制Unlimited
IOPSIOPS 100,000100,000
流入量Ingress 4,136 MiB/秒4,136 MiB/s
流出量Egress 6,204 MiB/秒6,204 MiB/s


存储帐户限制适用于所有共享。Storage account limits apply to all shares. 仅当每个 FileStorage 帐户只有一个共享时,才能实现 FileStorage 帐户的最大扩展。Scaling up to the max for FileStorage accounts is only achievable if there is only one share per FileStorage account.

文件共享和文件缩放目标File share and file scale targets


超过 5 TiB 的标准文件共享具有某些限制。Standard file shares larger than 5 TiB have certain limitations. 有关启用较大文件共享大小的限制和说明的列表,请参阅规划指南的在标准文件共享上启用较大文件共享部分。For a list of limitations and instructions to enable larger file share sizes, see the enable larger file shares on standard file shares section of the planning guide.

资源Resource 标准文件共享Standard file shares 高级文件共享Premium file shares
文件共享的最小大小Minimum size of a file share 没有最小值;提前支付No minimum; pay in advance 100 GiB;未预配100 GiB; provisioned
文件共享的最大大小Maximum size of a file share 100 TiB*、5 TiB100 TiB*, 5 TiB 100 TiB100 TiB
文件共享中文件的最大大小Maximum size of a file in a file share 1 TiB1 TiB 4 TiB4 TiB
文件共享中的文件数上限Maximum number of files in a file share 无限制No limit 无限制No limit
每个共享的最大 IOPSMaximum IOPS per share 10,000 IOPS*、1,000 IOPS 或 100ms 100 个请求10,000 IOPS*, 1,000 IOPS or 100 requests in 100ms 100,000 IOPS100,000 IOPS
每个文件共享的存储的访问策略的最大数目Maximum number of stored access policies per file share 55 55
单个文件共享的目标吞吐量Target throughput for a single file share 最高 300 MiB/秒*、最高 60 MiB/秒up to 300 MiB/sec*, Up to 60 MiB/sec , 查看高级文件共享流入量和流出量值See premium file share ingress and egress values
单个文件共享的最大流出量Maximum egress for a single file share 查看标准文件共享目标吞吐量See standard file share target throughput 最多 6,204 MiB/秒Up to 6,204 MiB/s
单个文件共享的最大流入量Maximum ingress for a single file share 查看标准文件共享目标吞吐量See standard file share target throughput 最多 4,136 MiB/秒Up to 4,136 MiB/s
每个文件或目录打开图柄的最大数目Maximum open handles per file or directory 2,000 个打开句柄2,000 open handles 2,000 个打开句柄2,000 open handles
共享快照的最大数目Maximum number of share snapshots 200 个共享快照200 share snapshots 200 个共享快照200 share snapshots
最大对象(目录和文件)名称长度Maximum object (directories and files) name length 2,048 个字符2,048 characters 2,048 个字符2,048 characters
最大路径名组成部分(在路径 \A\B\C\D 中,每个字母是一个组成部分)Maximum pathname component (in the path \A\B\C\D, each letter is a component) 255 个字符255 characters 255 个字符255 characters

* 标准文件共享的默认值为 5 TiB。若要详细了解如何将标准文件共享纵向扩展到 100 TiB,请参阅启用和创建大型文件共享* Default on standard file shares is 5 TiB, see Enable and create large file shares for the details on how to increase the standard file shares scale up to 100 TiB.

其他高级文件共享级别限制Additional premium file share level limits

区域Area 目标Target
最小大小增加/减少Minimum size increase/decrease 1 GiB1 GiB
基线 IOPSBaseline IOPS 每个 GiB 1 IOPS,最高 100,0001 IOPS per GiB, up to 100,000
IOPS 突发IOPS bursting 每个 GiB 3倍 IOPS,最高 100,0003x IOPS per GiB, up to 100,000
出口速率Egress rate 60 MiB/秒 + 0.06 * 预配 GiB60 MiB/s + 0.06 * provisioned GiB
入口速率Ingress rate 40 MiB/秒 + 0.04 * 预配 GiB40 MiB/s + 0.04 * provisioned GiB

文件级别限制File level limits

区域Area 标准文件Standard file 高级文件Premium file
大小Size 1 TiB1 TiB 4 TiB4 TiB
每个文件的最大 IOPSMax IOPS per file 1,0001,000 5,0005,000
并发句柄数Concurrent handles 2,0002,000 2,0002,000
流出量Egress 查看标准文件吞吐量值See standard file throughput values 300 MiB/秒300 MiB/sec
流入量Ingress 查看标准文件吞吐量值See standard file throughput values 200 MiB/秒200 MiB/sec
吞吐量Throughput 最多 60 MiB/秒Up to 60 MiB/sec 查看高级文件流入量/流出量值See premium file ingress/egress values

另请参阅See also