Updated on 2025-08-25 GMT+08:00

AS Priority Policy Check

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

as-capacity-rebalancing

Identifier

AS Priority Policy Check

Description

If the priority policy EQUILIBRIUM_DISTRIBUTE is not enabled, this rule is non-compliant.

Tag

as

Trigger Type

Configuration change

Filter Type

as.scalingGroups

Rule Parameters

None

Application Scenarios

If the AS group spans two or more AZs, you need to configure the multi-AZ scaling policy.

  • EQUILIBRIUM_DISTRIBUTE (default): When adjusting the number of instances, ensure that instances in each AZ in the available_zones list is evenly distributed. If instances cannot be added in the target AZ, select another AZ based on the PICK_FIRST policy.
  • PICK_FIRST: When AS scales out the AS group, the target AZ is determined by the order of the AZs in the available_zones list.

For details, see When There Are Multiple Flavors Included in the AS Configuration of an AS Group, What Order Are the Flavors Selected in During Scale-out Events? Balanced distribution helps improve the system availability and fault tolerance.

Solution

When you create or modify an AS group, select EQUILIBRIUM_DISTRIBUTE as the multi-AZ scaling policy.

Rule Logic

  • If the multi-AZ scaling policy is EQUILIBRIUM_DISTRIBUTE, the resource is compliant.
  • If the multi-AZ scaling policy is PICK_FIRST, the resource is non-compliant.
  • If the multi-AZ scaling policy is not configured, the resource is non-compliant.