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
每个区域每个订阅的批处理帐户数Batch accounts per region per subscription 1 - 31 - 3 5050
每个批处理帐户的专用核心数Dedicated cores per Batch account 10 - 10010 - 100 不适用1N/A1
每个批处理帐户的低优先级核心数Low-priority cores per Batch account 10 - 10010 - 100 N/A2N/A2
每个批处理帐户的活动作业和作业计划数3Active jobs and job schedules3 per Batch account 100 - 300100 - 300 2500425004
每个批处理帐户的池数Pools per Batch account 20 - 10020 - 100 500500


默认限制因用于创建 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 可以增加每个批处理帐户的专用核心数,但不指定其最大数目。1 The number of dedicated cores per Batch account can be increased, but the maximum number is unspecified. 请联系 Azure 支持以讨论增加选项。Contact Azure support to discuss increase options.

2 可以增加每个批处理帐户的低优先级核心数,但不指定其最大数目。2 The number of low-priority cores per Batch account can be increased, but the maximum number is unspecified. 请联系 Azure 支持以讨论增加选项。Contact Azure support to discuss increase options.

3 已完成的作业和作业计划不受限制。3 Completed jobs and job schedules are not limited.

4 如果请求增加的配额超出此限制,请与 Azure 支持部门联系。4 Contact Azure support if you want to request an increase beyond this limit.

用户订阅模式中的核心配额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 20 个20
每个应用程序的应用程序包数Application packages per application 4040
每个池的应用程序包数Application packages per pool 10 个10
最长任务生存期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. 已完成的任务会保存 7 天;最长生存期内未完成的任务的数据不可访问。Completed tasks persist for 7 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.

提高 Batch 中的核心数配额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:

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

    • 按区域Per region
      适用于某个区域中所有 Batch 帐户的值,包括单个订阅中单个区域的 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.