你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PoolResizeParameter interface

表示 PoolResizeParameter 的接口。

属性

nodeDeallocationOption

确定池大小减小时,计算节点及其正在运行的任务 () 操作。 默认值为 requeue。 可能的值包括:“requeue”、“terminate”、“taskCompletion”、“retainedData”

resizeTimeout

将节点分配到池或从池中删除计算节点的超时。 默认值为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。

targetDedicatedNodes

池中所需专用计算节点数。

targetLowPriorityNodes

池中所需的低优先级计算节点数。

属性详细信息

nodeDeallocationOption

确定池大小减小时,计算节点及其正在运行的任务 () 操作。 默认值为 requeue。 可能的值包括:“requeue”、“terminate”、“taskCompletion”、“retainedData”

nodeDeallocationOption?: ComputeNodeDeallocationOption

属性值

resizeTimeout

将节点分配到池或从池中删除计算节点的超时。 默认值为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。

resizeTimeout?: string

属性值

string

targetDedicatedNodes

池中所需专用计算节点数。

targetDedicatedNodes?: number

属性值

number

targetLowPriorityNodes

池中所需的低优先级计算节点数。

targetLowPriorityNodes?: number

属性值

number