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

选择 Azure Batch 池中计算节点的 VM 大小Choose a VM size for compute nodes in an Azure Batch pool

为 Azure Batch 池选择节点大小时,可以在 Azure 中提供的几乎所有 VM 大小中进行选择。When you select a node size for an Azure Batch pool, you can choose from among almost all the VM sizes available in Azure. Azure 针对不同工作负荷,为 Linux 和 Windows VM 提供一系列大小。Azure offers a range of sizes for Linux and Windows VMs for different workloads.

选择 VM 大小时有几个例外和限制:There are a few exceptions and limitations to choosing a VM size:

  • 批处理中不支持某些 VM 系列或 VM 大小。Some VM series or VM sizes are not supported in Batch.
  • 某些 VM 大小受到限制,需要专门启用才能进行分配。Some VM sizes are restricted and need to be specifically enabled before they can be allocated.

支持的 VM 系列和大小Supported VM series and sizes

虚拟机配置中的池Pools in Virtual Machine configuration

虚拟机配置中的 Batch 池几乎支持所有 VM 大小(LinuxWindows)。Batch pools in the Virtual Machine configuration support almost all VM sizes (Linux, Windows). 请参阅下表以了解有关支持的大小和限制的详细信息。See the following table to learn more about supported sizes and restrictions.

VM 系列VM series 支持的大小Supported sizes
基本 ABasic A 除 Basic_A0 (A0)以外的所有大小All sizes except Basic_A0 (A0)
AA 除 Standard_A0以外的所有大小All sizes except Standard_A0
Av2Av2 所有大小All sizes
BB None
DCDC None
Dv2、DSv2Dv2, DSv2 所有大小All sizes
Dv3、Dsv3Dv3, Dsv3 所有大小All sizes
Dav4, Dasv4Dav4, Dasv4 无-尚不可用None - not yet available
Ev3、Esv3Ev3, Esv3 除 E64is_v3 和 E64i_v3 之外的所有大小All sizes, except for E64is_v3 and E64i_v3
Eav4, Easv4Eav4, Easv4 无-尚不可用None - not yet available
F、FsF, Fs 所有大小All sizes
Fsv2Fsv2 所有大小All sizes
G,GsG, Gs 所有大小All sizes
HH 所有大小All sizes
HB-ACCT-WC1HB1 所有大小All sizes
HBv21HBv21 所有大小All sizes
HC1HC1 所有大小All sizes
LSLs 所有大小All sizes
Lsv2Lsv2 无-尚不可用None - not yet available
M1M1 除 M64-16ms、M64m、M128、M128m 之外的所有大小All sizes, except for M64, M64m, M128, M128m
Mv2Mv2 无-尚不可用None - not yet available
NCNC 所有大小All sizes
NCv21NCv21 所有大小All sizes
NCv31NCv31 所有大小All sizes
ND1ND1 所有大小All sizes
NDv21NDv21 无-尚不可用None - not yet available
NVNV 所有大小All sizes
NVv31NVv31 所有大小All sizes
NVv4NVv4 None
SAP HANASAP HANA None

1可以在虚拟机配置的批处理池中分配这些 VM 大小,但必须创建新的 Batch 帐户并请求特定的配额增加1 These VM sizes can be allocated in Batch pools in Virtual Machine configuration, but you must create a new Batch account and request a specific quota increase. 当批处理帐户完全支持每个 VM 系列的 vCPU 配额时,将删除此限制。This limitation will be removed once vCPU quota per VM series is fully supported for Batch accounts.

云服务配置中的池Pools in Cloud Service configuration

云服务配置中的 Batch 池支持云服务的所有 VM 大小 ,如下所示:Batch pools in the Cloud Service configuration support all VM sizes for Cloud Services except for the following:

VM 系列VM series 不支持的大小Unsupported sizes
A 系列A-series 特小型Extra small
Av2 系列Av2-series Standard_A1_v2、Standard_A2_v2、Standard_A2m_v2Standard_A1_v2, Standard_A2_v2, Standard_A2m_v2

大小注意事项Size considerations

  • 应用程序要求 - 请考虑要在节点上运行的应用程序的特征和要求。Application requirements - Consider the characteristics and requirements of the application you'll run on the nodes. 考虑应用程序是否是多线程的以及其消耗的内存量等因素有助于确定最合适且经济高效的节点大小。Aspects like whether the application is multithreaded and how much memory it consumes can help determine the most suitable and cost-effective node size. 对于多实例 MPI 工作负荷或 CUDA 应用程序,请分别考虑使用专用 HPC VM 大小或启用 GPU 的 VM 大小。For multi-instance MPI workloads or CUDA applications, consider specialized HPC or GPU-enabled VM sizes, respectively. (请参阅在 Batch 池中使用支持 RDMA 或启用 GPU 的实例。)(See Use RDMA-capable or GPU-enabled instances in Batch pools.)

  • 每个节点的任务数 - 通常,选择节点大小时会假设一个任务要在节点上运行一次。Tasks per node - It's typical to select a node size assuming one task runs on a node at a time. 但是,在作业执行期间,让多个任务(因此有多个应用程序实例)在计算节点上并行运行可能是很有利的。However, it might be advantageous to have multiple tasks (and therefore multiple application instances) run in parallel on compute nodes during job execution. 在此情况下,往往会选择多核节点大小,以满足更高的并行任务执行需求。In this case, it is common to choose a multicore node size to accommodate the increased demand of parallel task execution.

  • 不同任务的负载级别 - 池中的所有节点都是相同大小。Load levels for different tasks - All of the nodes in a pool are the same size. 如果打算运行具有不同系统要求和/或负载级别的应用程序,建议使用不同的池。If you intend to run applications with differing system requirements and/or load levels, we recommend that you use separate pools.

  • 区域可用性-VM 系列或大小可能不适用于创建 Batch 帐户的区域。Region availability - A VM series or size might not be available in the regions where you create your Batch accounts. 若要检查大小是否可用,请参阅可用产品(按区域)To check that a size is available, see Products available by region.

  • 配额 - Batch 帐户中的核心配额会限制可添加到 Batch 池的给定大小的节点数。Quotas - The cores quotas in your Batch account can limit the number of nodes of a given size you can add to a Batch pool. 若要请求增加配额,请参阅此文To request a quota increase, see this article.

  • 池配置 - 通常,与云服务配置相比,在虚拟机配置中创建池时有更多 VM 大小选项。Pool configuration - In general, you have more VM size options when you create a pool in the Virtual Machine configuration, compared with the Cloud Service configuration.

后续步骤Next steps