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 are supported only when the reclaim mode of the scaling group is set to release or forcerelease.
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-bp1fo0dbtsbmqa9h**** |
| ClientToken |
string |
No |
Ensures the idempotence of the request. You can generate the parameter value on your client to ensure 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. |
0 |
| MinCapacity |
integer |
No |
The minimum number of instances in the warm pool. The system always keeps at least this number of prepared instances in the warm pool to ensure that instances can be quickly added from the warm pool during scale-out. Default value: 0. Note
The value of |
0 |
| DesiredGroupPreparedCapacity |
integer |
No |
The expected number of instances covered by the warm pool. 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. The portion that exceeds the current number of instances in the scaling group is scaled out into the warm pool in advance. This allows quick scale-out from the warm pool when traffic peaks arrive, 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:
Default value: Stopped. |
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 ID of the request. |
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.