Azure Batch 的渲染功能Azure Batch rendering capabilities

标准 Azure Batch 功能用于运行渲染工作负荷与应用程序。Standard Azure Batch capabilities are used to run rendering workloads and applications. Batch 还包含用于支持渲染工作负荷的特定功能。Batch also includes specific features to support rendering workloads.

有关 Batch 概念的概述,包括池、作业和任务,请参阅此文For an overview of Batch concepts, including pools, jobs, and tasks, see this article.

Batch 池Batch Pools

渲染应用程序安装Rendering application installation

如果只需使用预装的应用程序,则可以在池配置中指定 Azure 市场渲染 VM 映像。An Azure Marketplace rendering VM image can be specified in the pool configuration if only the pre-installed applications need to be used.

有一个 Windows 2016 映像和一个 CentOS 映像。There is a Windows 2016 image and a CentOS image. Azure 市场中,可以通过搜索“batch 渲染”找到 VM 映像。In the Azure Marketplace, the VM images can be found by searching for 'batch rendering'.

有关示例池配置,请参阅 Azure CLI 渲染教程For an example pool configuration, see the Azure CLI rendering tutorial. Azure 门户和 Batch Explorer 提供了 GUI 工具用于在创建池时选择渲染 VM 映像。The Azure portal and Batch Explorer provide GUI tools to select a rendering VM image when you create a pool. 如果使用 Batch API,请在创建池时,为 ImageReference 指定以下属性值:If using a Batch API, then specify the following property values for ImageReference when creating a pool:

发布者Publisher 产品/服务Offer SKUSku 版本Version
批处理batch rendering-centos73rendering-centos73 呈现rendering 最新latest
批处理batch rendering-windows2016rendering-windows2016 呈现rendering 最新latest

如果池 VM 上需要其他应用程序,则可以使用其他选项:Other options are available if additional applications are required on the pool VMs:

  • 共享映像库中的自定义映像A custom image from the Shared Image Gallery:
    • 可以使用此选项为 VM 配置所需的具体应用程序和版本。Using this option, you can configure your VM with the exact applications and specific versions that you require. 有关详细信息,请参阅使用共享映像库创建池For more information, see Create a pool with the Shared Image Gallery. Autodesk 和 Chaos Group 已分别修改了 Arnold 和 V-Ray,可以验证 Azure Batch 许可服务。Autodesk and Chaos Group have modified Arnold and V-Ray, respectively, to validate against an Azure Batch licensing service. 请确保这些应用程序的版本提供此支持,否则,即用即付许可模式将不适用。Make sure you have the versions of these applications with this support, otherwise the pay-per-use licensing won't work. 运行无头模式(批处理/命令行模式)时,最新版本的 Maya 或 3ds Max 不需要许可证服务器。Current versions of Maya or 3ds Max don't require a license server when running headless (in batch/command-line mode). 如果不确定如何使用此选项,请联系 Azure 支持部门。Contact Azure support if you're not sure how to proceed with this option.
  • 应用程序包Application packages:
    • 使用一个或多个 ZIP 文件打包应用程序文件,通过 Azure 门户上传,然后在池配置中指定该包。Package the application files using one or more ZIP files, upload via the Azure portal, and specify the package in pool configuration. 创建池 VM 时,将下载 ZIP 文件并解压缩文件。When pool VMs are created, the ZIP files are downloaded and the files extracted.
  • 资源文件:Resource files:
    • 应用程序文件将上传到 Azure Blob 存储;在池启动任务中指定文件引用。Application files are uploaded to Azure blob storage, and you specify file references in the pool start task. 创建池 VM 时,会将资源文件下载到每个 VM。When pool VMs are created, the resource files are downloaded onto each VM.

预装应用程序的即用即付许可Pay-for-use licensing for pre-installed applications

需在池配置中指定要使用的并且会产生许可费的应用程序。The applications that will be used and have a licensing fee need to be specified in the pool configuration.

  • 创建池时指定 applicationLicenses 属性。Specify the applicationLicenses property when creating a pool. 可在字符串数组中指定以下值 -“vray”、“arnold”、“3dsmax”、“maya”。The following values can be specified in the array of strings - "vray", "arnold", "3dsmax", "maya".
  • 指定一个或多个应用程序时,这些应用程序的费用将与 VM 费用相加。When you specify one or more applications, then the cost of those applications is added to the cost of the VMs. Azure Batch 定价页面上列出了应用程序价格。Application prices are listed on the Azure Batch pricing page.

备注

若改为通过连接到许可证服务器来使用渲染应用程序,则不要指定 applicationLicenses 属性。If instead you connect to a license server to use the rendering applications, do not specify the applicationLicenses property.

可以使用 Azure 门户或 Batch Explorer 选择应用程序和显示应用程序价格。You can use the Azure portal or Batch Explorer to select applications and show the application prices.

如果尝试使用某个应用程序,但尚未在池配置的 applicationLicenses 属性中指定该应用程序,或未连接许可证服务器,则应用程序执行会失败,并出现许可错误和非零退出代码。If an attempt is made to use an application, but the application hasn't been specified in the applicationLicenses property of the pool configuration or does not reach a license server, then the application execution fails with a licensing error and non-zero exit code.

预装应用程序的环境变量Environment variables for pre-installed applications

若要为渲染任务创建命令行,必须指定渲染应用程序可执行文件的安装位置。To be able to create the command line for rendering tasks, the installation location of the rendering application executables must be specified. Azure 市场 VM 映像中已创建系统环境变量,可以改用这些环境变量,而无需指定实际的路径。System environment variables have been created on the Azure Marketplace VM images, which can be used instead of having to specify actual paths. 这些环境变量补充了为每个任务创建的标准 Batch 环境变量These environment variables are in addition to the standard Batch environment variables created for each task.

应用程序Application 应用程序可执行文件Application Executable 环境变量Environment Variable
Autodesk 3ds Max 2018Autodesk 3ds Max 2018 3dsmaxcmdio.exe3dsmaxcmdio.exe 3DSMAX_2018_EXEC3DSMAX_2018_EXEC
Autodesk 3ds Max 2019Autodesk 3ds Max 2019 3dsmaxcmdio.exe3dsmaxcmdio.exe 3DSMAX_2019_EXEC3DSMAX_2019_EXEC
Autodesk Maya 2017Autodesk Maya 2017 render.exerender.exe MAYA_2017_EXECMAYA_2017_EXEC
Autodesk Maya 2018Autodesk Maya 2018 render.exerender.exe MAYA_2018_EXECMAYA_2018_EXEC
Chaos Group V-Ray StandaloneChaos Group V-Ray Standalone vray.exevray.exe VRAY_3.60.4_EXECVRAY_3.60.4_EXEC
Arnold 2017 命令行Arnold 2017 command line kick.exekick.exe ARNOLD_2017_EXECARNOLD_2017_EXEC
Arnold 2018 命令行Arnold 2018 command line kick.exekick.exe ARNOLD_2018_EXECARNOLD_2018_EXEC
BlenderBlender blender.exeblender.exe BLENDER_2018_EXECBLENDER_2018_EXEC

Azure VM 系列Azure VM families

与其他工作负荷一样,渲染应用程序的系统要求和性能要求根据作业与项目的不同而异。As with other workloads, rendering application system requirements vary, and performance requirements vary for jobs and projects. Azure 中根据要求提供了多种不同的 VM 系列 - 最低成本、最高性价比、最佳性能,等等。A large variety of VM families are available in Azure depending on your requirements - lowest cost, best price/performance, best performance, and so on. 有些渲染应用程序(例如 Arnold)基于 CPU,而有些(例如 V-Ray 和 Blender Cycles)则可以使用 CPU 和/或 GPU。Some rendering applications, such as Arnold, are CPU-based; others such as V-Ray and Blender Cycles can use CPUs and/or GPUs. 有关可用 VM 系列和 VM 大小的说明,请参阅 VM 类型和大小For a description of available VM families and VM sizes, see VM types and sizes.

作业和任务Jobs and tasks

作业和任务不需要特定于渲染的支持。No rendering-specific support is required for jobs and tasks. 主要配置项是任务命令行,它需要引用所需的应用程序。The main configuration item is the task command line, which needs to reference the required application. 使用 Azure 市场 VM 映像时,最好是使用环境变量来指定路径和应用程序可执行文件。When the Azure Marketplace VM images are used, then the best practice is to use the environment variables to specify the path and application executable.

后续步骤Next steps

有关 Batch 渲染的示例,请尝试学习以下两篇教程:For examples of Batch rendering try out the two tutorials: