| | |
| If you select multiple subnets, this parameter is required. After you create the scaling group, you can change the scaling policy based on your needs. - For automatically triggered adjustments:
- Priority policy: The scaling group sorts the availability zones by the order in which you select subnets. The availability zone corresponding to the first selected subnet has the highest priority. In this example, subnet02 has the highest priority.
- When the scaling group scales out, instances are preferentially deployed in availability zones with higher priority. When the scaling group scales in, instances are preferentially removed from availability zones with lower priority.
tip If instances cannot be scaled in the target availability zone, other availability zones are selected in order of priority. - Balanced policy: When the scaling group scales out or in, instances are randomly deployed or removed to ensure that instances in the scaling group are as evenly distributed as possible across all availability zones.
tip - If instances cannot be scaled in the target availability zone, other availability zones are randomly selected.
- If instances cannot be scaled out in the original availability zone, other availability zones are selected in order of priority when "Priority policy" is selected, and randomly selected when "Distributed policy" is selected.
| |
| - Release mode: Removed instances are deleted with no resources retained.
- Shutdown recycling mode: Removed instances are disabled in Economical Mode, which reclaims the instance's computing resources (vCPU, GPU, and memory). However, to avoid data loss, the Volume, image, Elastic IP (EIP), and bandwidth (fixed bandwidth mode) are retained.
tip - Do not retain application data, logs, etc., in the instances to avoid the risk of data loss after instance reclamation.
- Currently, only Pay-as-you-go instances without local volumes mounted (excluding EBM and HPC-optimized instances) support Economical Mode.
| release: releases the instances. |
| Configure the mixed billing methods for instances in the scaling group. You can combine any of the following methods to help reduce costs. This parameter takes effect only when "Spot" is selected for "Billing method" in Scaling Configuration Sources. - Minimum Pay-as-you-go Instances/Capacity: The minimum Pay-as-you-go instance count or capacity in the scaling group. When the Pay-as-you-go instance count or capacity in the scaling group is less than the value of this parameter, Pay-as-you-go instances will be created first.
tip - When the expected instance count is less than the minimum Pay-as-you-go instance count in the group, all instances in the group will be Pay-as-you-go instances.
- This parameter does not affect the final number of instances created in the scaling group. The number of instances is still limited by the instance count information.
- Percentage of Pay-as-you-go Instances: The proportion of Pay-as-you-go instances in the scaling group. When the percentage is calculated, the Pay-as-you-go instances corresponding to the minimum Pay-as-you-go instance count in the group are not included.
- Spot Expiration Replacement: If you select "Enable", about 5 minutes before a spot instance is reclaimed, the scaling group will proactively create a new spot instance to replace the current spot instance.
tip The current spot instance will be identified as abnormal by the health check feature and removed 5 minutes later. - Use Pay-as-you-go Instances Supplement Spot Capacity: When the automatic scale-out policy is met, if spot instances are sold out, Pay-as-you-go instances of the same instance type will be created to meet the scale-out demand.
tip When the scaling group scales in, supplementary Pay-as-you-go instances will be removed first, and then other instances will be removed based on the automatic scale-in policy. | Turn on. Minimum Pay-as-you-go Instances: 3. |
| tip When both the instance removal policy and the scaling policy exist, the scaling policy is executed first. | Earliest instance created from earliest scaling configuration |
Select Message Notification | If you select an option, you can receive notifications of scaling results via internal messages, SMS, or email. This way, you can timely learn changes in the scaling group. - If you do not select an option, message notification will not be used. You can enable message notification later by referring to Creating message notification.
- After you select an option, a message notification will be automatically created. To receive notifications successfully, you also need to configure the message delivery method and recipients. For more information, see Configuring message notification.
| |
| - When instance health check is enabled for the scaling group, each instance that joins the scaling group immediately has instance health check enabled. Instance health check monitors the running status of instances every 5 minutes. If an instance is in Error status, it is considered abnormal. The scaling group will automatically remove or delete abnormal instances.
- When instance health check is disabled, the scaling group will not process abnormal instances.
| |