您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Batch 服务配额和限制Batch service quotas and limits

与其他 Azure 服务一样,与 Batch 服务关联的某些资源存在限制。As with other Azure services, there are limits on certain resources associated with the Batch service. 其中的许多限制是 Azure 在订阅或帐户级别应用的默认配额。Many of these limits are default quotas applied by Azure at the subscription or account level. 本文将描述这些默认值,以及如何请求提高配额。This article discusses those defaults, and how you can request quota increases.

设计和增加 Batch 工作负荷时,请记住这些配额。Keep these quotas in mind as you design and scale up your Batch workloads. 例如,如果池没有达到指定的计算节点目标数量,那么可能是已达到 Batch 帐户的核心配额限制。For example, if your pool doesn't reach the target number of compute nodes you specified, you might have reached the core quota limit for your Batch account.

可以在单个批处理帐户中运行多个批处理工作负荷,或者在相同订阅的不同 Azure 区域的批处理帐户之间分散工作负荷。You can run multiple Batch workloads in a single Batch account, or distribute your workloads among Batch accounts that are in the same subscription, but in different Azure regions.

如果打算在 Batch 中运行生产工作负荷,可能需要将一个或多个配额提高到默认值以上。If you plan to run production workloads in Batch, you may need to increase one or more of the quotas above the default. 如果需要提高配额,可以免费提出在线客户支持请求If you want to raise a quota, you can open an online customer support request at no charge.

资源配额Resource quotas

配额是一种信用限制,不附带容量保证。A quota is a credit limit, not a capacity guarantee. 如果有大规模的容量需求,请联系 Azure 支持。If you have large-scale capacity needs, please contact Azure support.

此外请注意,配额不能保证值。Also note that quotas are not guaranteed values. 配额可以根据从 Batch 服务或用户请求以更改配额值的更改而有所不同。Quotas can vary based on changes from the Batch service or a user request to change a quota value.

资源Resource 默认限制Default limit 最大限制Maximum limit
每个区域每个订阅的 azure Batch 帐户Azure Batch accounts per region per subscription 1-31-3 5050
每个批处理帐户的专用核心数Dedicated cores per Batch account 90-90090-900 联系支持人员Contact support
每个批处理帐户的低优先级核心数Low-priority cores per Batch account 10-10010-100 联系支持人员Contact support
Active 作业和作业计划每个批处理帐户 (完成作业具有无限制)Active jobs and job schedules per Batch account (completed jobs have no limit) 100-300100-300 1,00011,0001
每个 Batch 帐户的池数Pools per Batch account 20-10020-100 50015001

备注

默认限制因用于创建 Batch 帐户的订阅类型而异。Default limits vary depending on the type of subscription you use to create a Batch account. 显示的核心配额适用于 Batch 服务模式下的 Batch 帐户。Cores quotas shown are for Batch accounts in Batch service mode. 查看 Batch 帐户中的配额View the quotas in your Batch account.

1若要请求增加的配额超出此限制,请联系 Azure 支持部门。1To request an increase beyond this limit, contact Azure Support.

用户订阅模式中的核心配额Cores quotas in user subscription mode

如果创建了 Batch 帐户,并将池分配模式设置为“用户订阅” ,则会以不同的方式应用配额。If you created a Batch account with pool allocation mode set to user subscription, quotas are applied differently. 在此模式下,会在创建池后直接在订阅中创建 Batch VM 和其他资源。In this mode, Batch VMs and other resources are created directly in your subscription when a pool is created. Azure Batch 核心配额不会应用到在此模式下创建的帐户。The Azure Batch cores quotas do not apply to an account created in this mode. 对于此类帐户,将应用订阅中的区域计算核心数和其他资源的配额。Instead, the quotas in your subscription for regional compute cores and other resources are applied. Azure 订阅和服务的限制、配额和约束中详细了解这些配额。Learn more about these quotas in Azure subscription and service limits, quotas, and constraints.

池大小限制Pool size limits

池大小限制由 Batch 服务设置。Pool size limits are set by the Batch service. 与不同资源配额,不能更改这些值。Unlike resource quotas, these values cannot be changed. 节点间通信和自定义映像的唯一池具有不同于标准配额限制。Only pools with inter-node communication and custom images have restrictions different from the standard quota.

资源Resource 最大限制Maximum Limit
启用了节点间通信的池中的计算节点Compute nodes in inter-node communication enabled pool
Batch 服务池分配模式Batch service pool allocation mode 100100
Batch 订阅池分配模式Batch subscription pool allocation mode 8080
使用自定义 VM 映像创建的池中的计算节点1Compute nodes in pool created with custom VM image1
专用节点Dedicated nodes 20002000
低优先级节点Low-priority nodes 10001000

1 适用于未启用节点间通信的池。1 For pools that are not inter-node communication enabled.

其他限制Other limits

设置由 Batch 服务的其他限制。Additional limits set by the Batch service. 与不同资源配额,不能更改这些值。Unlike resource quotas, these values cannot be changed.

资源Resource 最大限制Maximum Limit
每个计算节点的并发任务Concurrent tasks per compute node 4 x 节点核心数4 x number of node cores
每个 Batch 帐户的应用程序Applications per Batch account 2020
每个应用程序的应用程序包数Application packages per application 4040
每个池的应用程序包数Application packages per pool 1010
最长任务生存期Maximum task lifetime 180 天1180 days1

1 最长任务生存期(从添加到作业时算起到任务完成时结束)为 180 天。1 The maximum lifetime of a task, from when it is added to the job to when it completes, is 180 days. 已完成的任务保留七天;最大生存期内未完成的任务的数据不可访问。Completed tasks persist for seven days; data for tasks not completed within the maximum lifetime is not accessible.

查看 Batch 配额View Batch quotas

可在 Azure 门户中查看批处理帐户配额。View your Batch account quotas in the Azure portal.

  1. 在门户中选择“Batch 帐户” ,并选择所需的 Batch 帐户。Select Batch accounts in the portal, then select the Batch account you're interested in.

  2. 在 Batch 帐户的菜单上选择“配额” 。Select Quotas on the Batch account's menu.

  3. 显示当前应用于 Batch 帐户的配额View the quotas currently applied to the Batch account

    Batch 帐户配额

提高配额Increase a quota

执行以下步骤,使用 Azure 门户请求提高批处理帐户或订阅的配额。Follow these steps to request a quota increase for your Batch account or your subscription using the Azure portal. 可以提高哪种配额取决于批处理帐户的池分配模式。The type of quota increase depends on the pool allocation mode of your Batch account. 若要请求增加配额,必须包含你想要增加的配额的 VM 系列。To request a quota increase, you must include the VM series you would like to increase the quota for. 应用增加配额时,它被应用于所有系列的 Vm。When the quota increase is applied, it is applied to all series of VMs.

在批处理中增加内核配额Increase cores quota in Batch

  1. 在门户仪表板上选择“帮助 + 支持” 磁贴,或单击门户右上角的问号 ( ? )。Select the Help + support tile on your portal dashboard, or the question mark (?) in the upper-right corner of the portal.

  2. 选择“新建支持请求” > “基本” 。Select New support request > Basics.

  3. 在“基本信息” 中:In Basics:

    a.a. 问题类型 > 服务和订阅限制 (配额)Issue Type > Service and subscription limits (quotas)

    b.b. 选择订阅。Select your subscription.

    c.c. “配额类型” > “Batch” Quota type > Batch

    选择“下一步”。Select Next.

  4. 在“详细信息” 中:In Details:

    a.a. 在中提供的详细信息、 指定的位置、 配额类型和 Batch 帐户。In Provide details, specify the location, quota type, and Batch account.

    增加 batch 配额

    配额类型包括:Quota types include:

    • 每个批处理帐户Per Batch account
      值特定于单个批处理帐户,包括专用和低优先级核心数和作业和池的数量。Values specific to a single Batch account, including dedicated and low-priority cores, and number of jobs and pools.

    • 每个区域Per region
      适用于在区域中的所有批处理帐户和包括的每个区域每个订阅的 Batch 帐户数的值。Values that apply to all Batch accounts in a region and includes the number of Batch accounts per region per subscription.

    低优先级配额是跨所有 VM 系列的单个值。Low-priority quota is a single value across all VM series. 如果您需要受约束的 Sku,则必须选择低优先级核心并包含请求的 VM 系列。If you need constrained SKUs, you must select Low-priority cores and include the VM families to request.

    b.b. 根据业务影响情况选择“严重性” 。Select a Severity according to your business impact.

    选择“下一步”。Select Next.

  5. 在“联系人信息” 中:In Contact information:

    a.a. 选择“首选联系方法” 。Select a Preferred contact method.

    b.b. 输入并确认所需的联系人详细信息。Verify and enter the required contact details.

    选择创建来提交支持请求。Select Create to submit the support request.

提交支持请求后,Azure 支持人员将与你取得联系。Once you've submitted your support request, Azure support will contact you. 在几分钟时间或最多两个工作日内,可能已完成配额请求。Quota requests may be completed within a few minutes or up to two business days.

部署在 Azure 虚拟网络中的虚拟机配置中的 Batch 池可自动分配其他 Azure 网络资源。Batch pools in the Virtual Machine Configuration deployed in an Azure virtual network automatically allocate additional Azure networking resources. 在虚拟网络中,每 50 个池节点需要以下资源:The following resources are needed for each 50 pool nodes in a virtual network:

在包含创建 Batch 池时提供的虚拟网络的订阅中分配这些资源。These resources are allocated in the subscription that contains the virtual network supplied when creating the Batch pool. 这些资源受订阅的资源配额限制。These resources are limited by the subscription's resource quotas. 如果计划在虚拟网络中部署大型池,请检查订阅的这些资源配额。If you plan large pool deployments in a virtual network, check the subscription's quotas for these resources. 如果需要,请在 Azure 门户中选择“帮助和支持”,请求增大配额 。If needed, request an increase in the Azure portal by selecting Help + support.