Description | : You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead. |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "Pool_Resize", "$parameters": { "poolResizeParameter": { "$properties": [ { "#name": "nodeDeallocationOption", "Enum": { "new": [ [ "requeue", "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Remove Compute Nodes as soon as Tasks have been terminated." ], [ "terminate", "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Remove Compute Nodes as soon as Tasks have been terminated." ], [ "taskcompletion", "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Remove Compute Nodes when all Tasks have completed." ], [ "retaineddata", "Deprecated, we encourage you to upload task data to Azure Storage in your task and use `taskcompletion` instead. Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Remove Compute Nodes when all Task retention periods have expired." ] ], "old": [ [ "requeue", "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Remove Compute Nodes as soon as Tasks have been terminated." ], [ "terminate", "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Remove Compute Nodes as soon as Tasks have been terminated." ], [ "taskcompletion", "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Remove Compute Nodes when all Tasks have completed." ], [ "retaineddata", "Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no new Tasks while waiting. Remove Compute Nodes when all Task retention periods have expired." ] ] } } ] } } }
⚼ Request
POST:
/pools/{poolId}/resize
{
poolId:
string
,
poolResizeParameter:
{
,
targetDedicatedNodes:
integer
,
targetLowPriorityNodes:
integer
,
resizeTimeout:
string
,
nodeDeallocationOption:
enum
,
}
timeout:
integer
,
client-request-id:
string
,
return-client-request-id:
boolean
,
ocp-date:
string
,
If-Match:
string
,
If-None-Match:
string
,
If-Modified-Since:
string
,
If-Unmodified-Since:
string
,
api-version:
string
,
}
⚐ Response (202)
{
client-request-id:
string
,
request-id:
string
,
etag:
string
,
last-modified:
string
,
dataserviceid:
string
,
}
⚐ Response (default)
{
code:
string
,
message:
{
,
lang:
string
,
value:
string
,
}
values:
}
[
]
,
{
,
key:
string
,
value:
string
,
}