The validity of a scaling group configuration largely determines the success rate of scale-out operations. Auto Scaling uses elastic strength to describe the validity of scaling configurations, quantifying configuration quality and helping you optimize scaling configurations accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeElasticStrength |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the scaling group. |
cn-qingdao |
| ScalingGroupId |
string |
No |
The ID of the scaling group. |
asg-bp18p2yfxow2dloq**** |
| InstanceTypes |
array |
No |
The collection of instance types for ECS instances. If specified, this parameter overrides the instance types in the scaling configuration. |
|
|
string |
No |
The instance type of the ECS instance. |
ecs.g6.large |
|
| PriorityStrategy |
string |
No |
Note
This parameter is deprecated. Use SpotStrategy instead. The preemption policy for pay-as-you-go instances. If specified, this parameter overrides the preemption policy configured for the scaling group. Valid values:
Default value: NoSpot. |
NoSpot |
| SystemDiskCategories |
array |
No |
The system cloud disk types. If specified, this parameter overrides the system cloud disk types in the scaling configuration. Valid values:
Note
If you do not specify a scaling group ID, you must specify this parameter. |
|
|
string |
No |
The system cloud disk types. Valid values:
|
cloud |
|
| ScalingGroupIds |
array |
No |
The IDs of scaling groups for batch queries. |
|
|
string |
No |
The ID of the scaling group. |
asg-bp14wlu85wrpchm0**** |
|
| SpotStrategy |
string |
No |
The preemption policy for instances. Valid values:
Default value: NoSpot. |
NoSpot |
| VSwitchIds |
array |
No |
The IDs of multiple vSwitches. Note
If you do not specify a scaling group ID, you must specify this parameter. |
|
|
string |
No |
The IDs of multiple vSwitches. Note
If you do not specify a scaling group ID, you must specify this parameter. |
vsw-bp1whw2u46cn8zubm**** |
|
| ImageId |
string |
No |
The ID of the image file. The image resource used for automatic creation of instances. Note
If you do not specify a scaling group ID, you must specify at least one of ImageId, ImageName, or ImageFamily. |
centos6u5_64_20G_aliaegis****.vhd |
| ImageName |
string |
No |
The name of the image. Image names are unique within a region. If ImageId is specified, ImageName is ignored. You cannot use ImageName to specify images from Alibaba Cloud Marketplace. Note
If you do not specify a scaling group ID, you must specify at least one of ImageId, ImageName, or ImageFamily. |
ubuntu_18_04_x64_20G_alibase_20231225.vhd |
| ImageFamily |
string |
No |
The name of the image family. If you specify this parameter, the latest available image in the specified image family is used to create instances. If ImageId is already specified, you cannot specify this parameter. Note
If you do not specify a scaling group ID, you must specify at least one of ImageId, ImageName, or ImageFamily. |
CentOS7 |
| DataDiskCategories |
array |
No |
The elastic strength when multiple data cloud disk types are specified. If a data cloud disk type does not match, the specific mismatched disk type is returned in the query result. Note
If you do not specify a scaling group ID, you can specify this parameter. |
|
|
string |
No |
The data cloud disk type. Valid values:
|
cloud_essd |
|
| Ipv6AddressCount |
integer |
No |
The number of IPv6 addresses. If the instance type does not meet the IPv6 address count requirement, the elastic strength is degraded. Note
If you do not specify a scaling group ID, you can specify this parameter. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
73469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalStrength |
number |
The elastic strength of the scaling group. Each combination of instance type and zone is scored from 0 to 1 based on supply conditions, where 0 indicates low elastic strength and 1 indicates high elastic strength. The sum of scores for all instance type and zone combinations represents the elastic strength of the scaling group. Warning This parameter is deprecated.
|
1.5 |
| ElasticStrength |
string |
The elastic strength of the current scaling group. Valid values:
|
Strong |
| ResourcePools |
array<object> |
The elastic strength when querying a single scaling group. |
|
|
array<object> |
|||
| Strength |
number |
The elastic strength of the resource pool. |
0.6 |
| InstanceType |
string |
The instance type of the resource pool. |
ecs.c7t.xlarge |
| ZoneId |
string |
The zone ID of the resource pool. |
cn-hangzhou-g |
| VSwitchIds |
array |
The vSwitches in the zone of the resource pool. |
|
|
string |
The vSwitch ID. |
vsw-2ze0uc933kantv****** |
|
| Code |
string |
The reason (error code) when the elastic strength is 0. |
InstanceTypesOrDiskTypesNotSupported |
| Msg |
string |
The reason (error description) when the elastic strength is 0. |
The instanceTypes or diskTypes are not supported. |
| Status |
string |
Indicates whether the resource pool is available. Valid values:
|
Available |
| InventoryHealth |
object |
The inventory health information. |
|
| HealthScore |
integer |
Inventory health score.
Calculation Formula: |
3 |
| AdequacyScore |
integer |
Adequacy. Possible values: 0–3. |
3 |
| SupplyScore |
integer |
Replenishment capability. Possible values: 0–3. |
3 |
| HotScore |
integer |
Popularity. Possible values: 0–3. |
3 |
| ElasticStrength |
string |
The elastic strength of the current resource pool, which takes into account both the inventory health and current inventory status of the resource pool. Valid values:
|
Medium |
| ElasticStrengthModels |
array<object> |
The elastic strength when querying scaling groups in batches. |
|
|
array<object> |
|||
| ScalingGroupId |
string |
The scaling group ID. |
asg-wz98mnj7nblv9gc**** |
| ElasticStrength |
string |
The elastic strength of the current scaling group. Valid values:
|
Strong |
| TotalStrength |
number |
The elastic strength of the current scaling group. Each combination of instance type and zone is scored from 0 to 1 based on supply conditions, where 0 indicates low elastic strength and 1 indicates high elastic strength. The sum of scores for all instance type and zone combinations represents the elastic strength of the scaling group. Warning This parameter is deprecated.
|
5 |
| ResourcePools |
array<object> |
The elastic strength information for each resource pool. |
|
|
array<object> |
|||
| InstanceType |
string |
Instance type of the resource pool. |
ecs.r7.large |
| Strength |
number |
The elasticity strength of the resource pool. Warning This field is deprecated. |
0.6 |
| ZoneId |
string |
The zone ID of the resource pool. |
cn-hangzhou-g |
| VSwitchIds |
array |
The vSwitches in the zone of the resource pool. |
|
|
string |
The vSwitch ID. |
vsw-2ze6e8p4aid08lymlsguv |
|
| Code |
string |
Reason (error code) when elasticity strength is 0. |
InstanceTypesOrDiskTypesNotSupported |
| Msg |
string |
The reason (fault description) when the elasticity strength is 0. |
The instanceTypes or diskTypes are not supported. |
| Status |
string |
Whether the resource pool is active. Possible values:
|
Available |
| InventoryHealth |
object |
Inventory health degree. |
|
| HealthScore |
integer |
Inventory health score.
Calculation Formula: |
3 |
| AdequacyScore |
integer |
Adequacy degree. Possible values: 0–3. |
3 |
| SupplyScore |
integer |
Supply capability. Possible values: 0–3. |
2 |
| HotScore |
integer |
Hotness degree. Possible values: 0–3. |
0 |
| ElasticStrength |
string |
Strong |
Examples
Success response
JSON format
{
"RequestId": "73469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"TotalStrength": 1.5,
"ElasticStrength": "Strong",
"ResourcePools": [
{
"Strength": 0.6,
"InstanceType": "ecs.c7t.xlarge",
"ZoneId": "cn-hangzhou-g",
"VSwitchIds": [
"vsw-2ze0uc933kantv******"
],
"Code": "InstanceTypesOrDiskTypesNotSupported",
"Msg": "The instanceTypes or diskTypes are not supported.",
"Status": "Available",
"InventoryHealth": {
"HealthScore": 3,
"AdequacyScore": 3,
"SupplyScore": 3,
"HotScore": 3
},
"ElasticStrength": "Medium"
}
],
"ElasticStrengthModels": [
{
"ScalingGroupId": "asg-wz98mnj7nblv9gc****",
"ElasticStrength": "Strong",
"TotalStrength": 5,
"ResourcePools": [
{
"InstanceType": "ecs.r7.large",
"Strength": 0.6,
"ZoneId": "cn-hangzhou-g",
"VSwitchIds": [
"vsw-2ze6e8p4aid08lymlsguv"
],
"Code": "InstanceTypesOrDiskTypesNotSupported",
"Msg": "The instanceTypes or diskTypes are not supported.",
"Status": "Available",
"InventoryHealth": {
"HealthScore": 3,
"AdequacyScore": 3,
"SupplyScore": 2,
"HotScore": 0
},
"ElasticStrength": "Strong"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.