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 存储帐户的默认限制。The following table describes default limits for Azure general-purpose v1, v2, and Blob storage accounts. “传入” 限制是指请求中发送到存储帐户的所有数据。The ingress limit refers to all data from requests that are sent to a storage account. “传出” 限制是指响应中从存储帐户接收的所有数据。The egress limit refers to all data from responses that are received from a storage account.

ResourceResource 默认限制Default limit
每个订阅每个区域的存储帐户数,包括标准帐户和高级帐户Number of storage accounts per region per subscription, including both standard and premium accounts 250250
最大存储帐户容量Maximum storage account capacity 500 TB500 TB
每个存储帐户的 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 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 LRS 2

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

2 如果启用了读取访问权限 (RA-GRS),则辅助位置的出口目标与主位置的出口目标相同。2 If you have Read-access enabled (RA-GRS), the egress targets for the secondary location are identical to those of the primary location. Azure 存储复制选项包括:Azure Storage replication options include:

Note

大多数情况下,建议使用常规用途 v2 存储帐户。We recommend 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.

有关 Azure 存储帐户的详细信息,请参阅存储帐户概述For more information on Azure Storage accounts, see Storage account overview.

如果应用程序的需求超过单个存储帐户的伸缩性目标,则可以构建使用多个存储帐户的应用程序。If the needs of your application exceed the scalability targets of a single storage account, you can build your application to use multiple storage accounts. 然后,可以将数据对象分布到这些存储帐户中。You can then partition your data objects across those storage accounts. 有关批量定价的信息,请参阅 Azure 存储定价For information on volume pricing, see Azure Storage pricing.

所有存储帐户都在扁平网络拓扑上运行,无论它们创建于何时,都支持本文所述的可伸缩性和性能目标。All storage accounts run on a flat network topology and support the scalability and performance targets outlined in this article, 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 默认限制Default limit
存储帐户管理操作数(读取)Storage account management operations (read) 每 5 分钟 800 次800 per 5 minutes
存储帐户管理操作数(写入)Storage account management operations (write) 每小时 200 次200 per hour
存储帐户管理操作数(列出)Storage account management operations (list) 每 5 分钟 100 次100 per 5 minutes

Important

其他存储服务的常规用途存储帐户利用率会影响存储帐户中的 Azure 文件共享。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

ResourceResource 标准文件共享Standard file shares
文件共享的最小大小Minimum size of a file share 没有最小值;提前支付No minimum; pay in advance
文件共享的最大大小Maximum size of a file share 5 TiB5 TiB
文件共享中文件的最大大小Maximum size of a file in a file share 1 TiB1 TiB
文件共享中的文件数上限Maximum number of files in a file share 无限制No limit
每个共享的最大 IOPSMaximum IOPS per share 1,000 IOPS1,000 IOPS
每个文件共享的存储的访问策略的最大数目Maximum number of stored access policies per file share 55
单个文件共享的目标吞吐量Target throughput for a single file share 最多 60 MiB/秒Up to 60 MiB/sec
单个文件共享的最大流出量Maximum egress for a single file share 查看标准文件共享目标吞吐量See standard file share target throughput
单个文件共享的最大流入量Maximum ingress for a single file share 查看标准文件共享目标吞吐量See standard file share target throughput
每个文件打开图柄的最大数目Maximum open handles per file 2,000 个打开句柄2,000 open handles
共享快照的最大数目Maximum number of share snapshots 200 个共享快照200 share snapshots
最大对象(目录和文件)名称长度Maximum object (directories and files) name length 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

另请参阅See also