แก้ไข

แชร์ผ่าน


Batch service quotas and limits

As with other Azure services, there are limits on certain resources associated with Azure Batch. For example, if your pool doesn't reach your target number of compute nodes, you might have reached the core quota limit for your Batch account. Many limits are default quotas, which Azure applies at the subscription or account level.

Keep these quotas in mind as you design and scale up your Batch workloads. You can run multiple Batch workloads in a single Batch account. Or, you can distribute your workloads among Batch accounts in the same subscription but different Azure regions. If you plan to run production workloads in Batch, you might need to increase one or more of the quotas above the default. To raise a quota, request a quota increase at no charge.

Resource quotas

A quota is a limit, not a capacity guarantee. If you have large-scale capacity needs, contact Azure support.

Also note that quotas aren't guaranteed values. 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 accounts per region per subscription 1-3 50
Dedicated cores per Batch account 0-9001 Contact support
Low-priority cores per Batch account 0-1001 Contact support
Active jobs and job schedules per Batch account (completed jobs have no limit) 100-300 1,0002
Pools per Batch account 0-1001 5002
Private endpoint connections per Batch account 100 100

1 For capacity management purposes, the default quotas for new Batch accounts in some regions and for some subscription types have been reduced from the above range of values. In some cases, these limits have been reduced to zero. When you create a new Batch account, check your quotas and request an appropriate core or service quota increase, if necessary. Alternatively, consider reusing Batch accounts that already have sufficient quota or user subscription pool allocation Batch accounts to maintain core and VM family quota across all Batch accounts on the subscription. Service quotas like active jobs or pools apply to each distinct Batch account even for user subscription pool allocation Batch accounts.

2 To request an increase beyond this limit, contact Azure Support.

Note

Default limits vary depending on the type of subscription you use to create a Batch account. Cores quotas shown are for Batch accounts in Batch service mode. View the quotas in your Batch account.

Core quotas

Core quotas in Batch service mode

Core quotas exist for each virtual machine (VM) series supported by Batch. These core quotas are displayed on the Quotas page in the Azure portal. To update VM series quota limits, open a support request.

  • For dedicated nodes, Batch enforces a core quota limit for each VM series, and a total core quota limit for the entire Batch account.
  • For Spot nodes, Batch enforces only a total core quota for the Batch account without any distinction between different VM series.

Core quotas in user subscription mode

If you created a Batch account with pool allocation mode set to user subscription, Batch VMs and other resources are created directly in your subscription when a pool is created or resized. The Azure Batch core quotas don't apply and the quotas in your subscription for regional compute cores, per-series compute cores, and other resources are used and enforced.

To learn more about these quotas, see Azure subscription and service limits, quotas, and constraints.

Pool size limits

Pool size limits are set by the Batch service. Unlike resource quotas, these values can't 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 service pool allocation mode 100
Batch subscription pool allocation mode 80
Compute nodes in pool created with a managed image resource1
Dedicated nodes 2000
Spot nodes 1000

1 For pools that aren't inter-node communication enabled.

Other limits

The Batch service sets the following other limits. Unlike resource quotas, it's not possible to change these values.

Resource Maximum Limit
Concurrent tasks per compute node 4 x number of node cores
Applications per Batch account 200
Application packages per application 40
Application packages per pool 10
Maximum task lifetime 180 days1
Mounts per compute node 10
Certificates per pool 12

1 The maximum lifetime of a task, from when it's added to the job to when it completes, is 180 days. By default, data is retained for completed tasks for seven days if the compute node where it ran is still available. Data for tasks not completed within the maximum lifetime isn't accessible. Completed task data retention times are configurable on a per task basis.

View Batch quotas

To view your Batch account quotas in the Azure portal:

  1. Sign in to the Azure portal.

  2. Select or search for Batch accounts.

  3. On the Batch accounts page, select the Batch account that you want to review.

  4. On the Batch account's menu, under Settings, select Quotas.

  5. Review the quotas currently applied to the Batch account.

    Screenshot of Batch account's quota page in the Azure portal. Highlights for the quota page in menu, button to request quota increase, and quota column in resource list.

Increase a quota

You can request a quota increase for your Batch account or your subscription using the Azure portal or by using the Azure Quota REST API.

The type of quota increase depends on the pool allocation mode of your Batch account. To request a quota increase, you must include the VM series for which you would like to increase the quota. When the quota increase is applied, it's applied to all series of VMs.

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.

Quota types

You can select from two quota types when you create your support request.

Select Per Batch account to request quota increases for a single Batch account. These quota increases can include dedicated and Spot cores, and the number of jobs and pools. If you select this option, specify the Batch account to which this request applies. Then, select the quota(s) you'd like to update. Provide the new limit you're requesting for each resource. The Spot quota is a single value across all VM series. If you need constrained SKUs, select Spot cores and include the VM families to request.

Select All accounts in this region to request quota increases that apply to all Batch accounts in a region. For example, use this option to increase the number of Batch accounts per region per subscription.

Request in Azure portal

To request a quota increase using the Azure portal, first open a support request:

  1. Sign in to the Azure portal.

  2. Select or search for Quotas.

  3. On the Quotas page, select Increase my quotas.

You can also open the support request as follows:

  1. Sign in to the Azure portal.

  2. Select or search for Help + support in the Azure portal. Or, select the question mark icon (?) in the portal menu. Then, in the Support + troubleshooting pane, select Help + support.

  3. On the New support request page, select Create a support request.

Next, fill out your support request.

  1. On the Basics tab:

    1. For Summary, enter a description of your issue.

    2. For Issue Type, select Service and subscription limits (quotas).

    3. For Subscription, select the Azure subscription where your Batch account is.

    4. For Quota type, select Batch.

    5. Select Next: Solutions to continue. The Solutions tab is skipped.

      Screenshot of new support request in the Azure portal, showing quota as the issue type and Batch as the quota type.

  2. On the Details tab:

    1. Under Problem details, select Enter details.

    2. On the Quota details pane, for Location, enter the Azure region where you want to increase the quota.

    3. For Quota type, select your quota type. If you're not sure which option to select, see the explanation of quota types.

    4. If applicable, for Batch account, select the Batch account to update.

    5. If applicable, for Select Quotas to Update, select which specific quotas to increase.

      Screenshot of the quota increase request screen, highlighting selection box for the quota type.

    6. Under Advanced diagnostic information, choose whether to allow collection of advanced diagnostic information.

    7. Under Support method, select the appropriate severity level for your business situation. Also select your preferred contact method and support language.

    8. Under Contact information, enter and verify the required contact details.

    9. Select Next: Review + create to continue.

  3. Select Create to submit the support request.

Request through Azure Quota REST API

You can use the Azure Quota REST API to request a quota increase at the subscription level or at the Batch account level.

For details and examples, see Request a quota increase using the Azure Support REST API.

Batch pools in a VM configuration deployed in an Azure virtual network automatically allocate more Azure networking resources. These resources are created in the subscription that contains the virtual network supplied when creating the Batch pool.

The following resources are created for each 100 pool nodes in a virtual network:

These resources are limited by the subscription's resource quotas. If you plan large pool deployments in a virtual network, you may need to request a quota increase for one or more of these resources.

Next steps