管理编码的速度和并发Manage speed and concurrency of your encoding

本文简要概述了如何管理编码作业/任务的速度和并发。This article gives a brief overview of how you can manage speed and concurrency of your encoding jobs/tasks.

概述Overview

在媒体服务中,预留单位类型决定了编码处理任务的处理速度。In Media Services, a Reserved Unit Type determines the speed with which your media processing tasks are processed. 可以在以下预留单位类型中进行选择:S1S2S3You can pick between the following reserved unit types: S1, S2, or S3. 例如,与 S1 预留单位类型相比,使用 S2 预留单位类型时,同一编码作业运行速度更快。For example, the same encoding job runs faster when you use the S2 reserved unit type compare to the S1 type. 缩放编码单位主题显示了一个表,该表可帮助你在不同的编码速度之间进行选择时做出决定。The scaling encoding units topic shows a table that helps you make decision when choosing between different encoding speeds.

除了指定预留单位类型之外,还可以为帐户预配预留单位In addition to specifying the reserved unit type, you can specify to provision your account with Reserved Units. 设置的预留单位数决定了给定帐户中可并发处理的媒体任务数。The number of provisioned reserved units determines the number of media tasks that can be processed concurrently in a given account. 例如,如果帐户具有 5 个预留单位,则只要有任务要处理,就可以同时运行 5 个媒体任务。For example, if your account has five reserved units, then five media tasks will be running concurrently as long as there are tasks to be processed. 其余任务将排队等待,运行的任务完成后才选择它们以按顺序进行处理。The remaining tasks will wait in the queue and will get picked up for processing sequentially when a running task finishes. 如果帐户未设置任何预留单位,则按顺序选择任务进行处理。If an account does not have any reserved units provisioned, then tasks will be picked up sequentially. 在这种情况下,完成一个任务和开始下一个任务之间的等待时间取决于系统中资源的可用性。In this case, the wait time between one task finishing and the next one starting will depend on the availability of resources in the system.

有关介绍如何缩放编码单位的详细信息和示例,请参阅主题。For detailed information and examples that show how to scale encoding units, see this topic.

后续步骤Next step

缩放编码单位Scale encoding units

媒体服务学习路径Media Services learning paths

媒体服务 v3(最新版本)Media Services v3 (latest)

查看最新版本的 Azure 媒体服务!Check out the latest version of Azure Media Services!

媒体服务 v2(旧版)Media Services v2 (legacy)