PutWarmPool
Configures a warm pool for a scaling group. If the scaling group does not have a warm pool, this operation creates one. If the scaling group already has a warm pool, this operation modifies the configuration of the warm pool.
Operation description
-
Warm pools are supported only for
-
ECS scaling groups. Warm pools support only scaling groups whose reclaim mode is set to
releaseorforcerelease.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:PutWarmPool |
update |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ScalingGroupId |
string |
Yes |
The ID of the scaling group. |
asg-bp1igpak5ft1flyp**** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the value from your client. Make sure that the value is unique across different requests. The value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
123e4567-e89b-12d3-a456-42665544**** |
| RegionId |
string |
Yes |
The region ID of the scaling group. |
cn-hangzhou |
| CapacityOptions |
object |
No |
The capacity options for the warm pool. |
|
| MinCapacity |
integer |
No |
The minimum number of instances in the warm pool. The system always keeps at least this number of warmed instances in the warm pool to ensure rapid scale-out from the warm pool at any time. Default value: 0. Note
The value of |
0 |
| DesiredGroupPreparedCapacity |
integer |
No |
The expected number of prepared instances. The system maintains the sum of the current number of instances in the scaling group and the number of instances in the warm pool at this value. Instances that exceed the current number of instances in the scaling group are scaled out into the warm pool in advance. This allows rapid scale-out from the warm pool when traffic peaks occur, avoiding the wait time caused by creating instances on the fly. Default value: the maximum number of instances in the scaling group, which is specified by Note
The value of |
20 |
| PoolState |
string |
No |
The state of instances in the warm pool. Valid values:
|
Running |
| InstanceReusePolicy |
object |
No |
The instance reclaim policy. |
|
| ReuseOnScaleIn |
boolean |
No |
Specifies whether instances are reclaimed to the warm pool when the scaling group scales in. Valid values:
Default value: false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.