池调整大小开始事件

启动池大小调整时,将发出此事件。 由于池大小调整是一个异步事件,因此,在调整大小作完成后,可以发出池大小调整完成事件。

以下示例显示了池大小调整大小从 0 到 2 个节点的池大小调整开始事件的正文,并手动调整大小。

{
   "id": "myPool1",
   "nodeDeallocationOption": "Invalid",
   "currentDedicatedNodes": 0,
   "targetDedicatedNodes": 2,
   "currentLowPriorityNodes": 0,
   "targetLowPriorityNodes": 2,
   "enableAutoScale": false,
   "isAutoPool": false
}
Element 类型 Notes
id String 池的 ID。
nodeDeallocationOption String 指定如果池大小正在减少,则指定何时可以从池中删除节点。

可能的值为:

requeue - Terminate running tasks and requeue them. 启用作业后,任务会再次运行。 在任务终止后立即删除节点。

terminate - Terminate running tasks. 任务不会再次运行。 在任务终止后立即删除节点。

taskcompletion - Allow currently running tasks to complete. 等待时不安排新任务。 完成所有任务时删除节点。

Retaineddata - Allow currently running tasks to complete, then wait for all task data retention periods to expire. 等待时不安排新任务。 当所有任务保留期都过期时删除节点。

默认值为重新排队。

If the pool size is increasing then the value is set to invalid.
currentDedicatedNodes Int32 当前分配给池的专用计算节点数。
targetDedicatedNodes Int32 池请求的专用计算节点数。
enableAutoScale Bool 指定池大小是否随时间自动调整。
isAutoPool Bool 指定是否已通过作业的 AutoPool 机制创建池。