Auto Scaling allows you to manage scaling configurations. You can apply, modify, delete, import, and export scaling configurations.
Apply scaling configurations
You can create up to 70 scaling configurations for a scaling group. However, you can apply only one scaling configuration to a scaling group. You can specify the scaling configuration as the instance configuration source for your scaling group based on your business requirements.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
- Find the scaling group to which you want to apply a scaling configuration and click Details in the Actions column.
- In the upper part of the page, click the Instance Configuration Sources tab.
- Click the Scaling Configurations tab.
- Find the scaling configuration that you want to apply and click Apply in the Actions column. Note After you apply a scaling configuration to the scaling group, the scaling configuration takes effect and enters the Active state. Only one scaling configuration can be in the Active state in a scaling group. After you apply a scaling configuration, the original scaling configuration enters the Inactive state.
- Click OK. After you apply a scaling configuration, Auto Scaling creates Elastic Compute Service (ECS) instances or elastic container instances based on the scaling configuration when a scale-out activity is triggered.
Modify or delete scaling configurations
- If your scaling configuration no longer meets your business requirements, you can modify the parameter settings of the scaling configuration to meet the changing requirements of your business for ECS instances or elastic container instances. After you modify a scaling configuration, Auto Scaling creates ECS instances or elastic container instances based on the new scaling configuration. The configurations of ECS instances or elastic container instances that are created based on the original scaling configuration are retained.
- If a scaling configuration is in the Inactive state and no ECS instances or elastic container instances in your scaling group are created based on the scaling configuration, you can delete the scaling configuration to free up the quota.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
- Find the scaling group whose scaling configuration you want to modify or delete and click Details in the Actions column.
- In the upper part of the page, click the Instance Configuration Sources tab.
- Click the Scaling Configurations tab.
- Find the scaling configuration and modify or delete the scaling configuration.
Action Procedure Modify scaling configurations based on which ECS instances are created - Find the scaling configuration that you want to modify and click Edit in the Actions column.
- Modify the basic configurations and system configurations based on your business requirements.
For information about the parameters of scaling configurations, see Create scaling configurations for scaling groups that contain ECS instances.
- Click Next Preview.
- Check the parameter settings and enter a name for the scaling configuration.
- Optional: If your scaling group is associated with a Classic Load Balancer (CLB) instance, you can change the value of the Load Balancer Weight parameter in the Save Auto Scaling Configuration section.
The Load Balancer Weight parameter is displayed in the Preview step only for scaling groups that are associated with CLB instances. The Load Balancer Weight parameter specifies the weight of an ECS instance as the backend server of the associated CLB instance. Valid values: 1 to 100. Default value: 50.
If you want to increase the weight of a backend server from 50 to 100 to meet your business requirements, you can set the Load Balancer Weight parameter to 100 in the Preview step.
- Click Modify.
Modify scaling configurations based on which elastic container instances are created - Find the scaling configuration that you want to modify and click Edit in the Actions column.
- Modify the configurations based on your business requirements.
For information about the parameters of scaling configurations, see Create scaling configurations for scaling groups that contain elastic container instances.
- Click Confirm Configuration.
- Check your configurations and click Modify.
Delete scaling configurations - Find the scaling configuration that you want to delete and click Delete in the Actions column.
- In the Delete Scaling Configuration message, click OK.
Import or export scaling configurations
You can import or export only scaling configurations that are used to create ECS instances. You can export scaling configurations from a scaling group, and then back up the configurations on local disks. You can also import scaling configurations that are exported from a scaling group to other scaling groups. This way, you can create scaling configurations in an accelerated manner. Before you import a scaling configuration to a scaling group, you must prepare a scaling configuration file. Make sure that the network type of the scaling group from which a scaling configuration is exported is the same as the network type of the scaling group to which you want to import the scaling configuration. If the network type of the two scaling groups is virtual private cloud (VPC), the scaling groups must reside in the same VPC.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
- Find the scaling group whose scaling configuration you want to modify or delete and click Details in the Actions column.
- In the upper part of the page, click the Instance Configuration Sources tab.
- Click the Scaling Configurations tab.
- Import or export scaling configurations.
Action Procedure Export scaling configurations Click Export Scaling Configuration. The name of the scaling configuration file that you want to export must end with .csv. Example: ess_scalingConfiguration_list_cn-hangzhou_2022-07-19.csv.
Import scaling configurations - Click Import Scaling Configuration.
- In the Select File section, click Select File, and then select the scaling configuration file that you want to import. The name of the file that you want to import must also end with .csv. Important You can import up to 10 scaling configurations at a time. The scaling configurations that you import to a scaling group cannot overwrite the existing scaling configurations in the scaling group. Network configurations must be the same. The network configurations include the network type, the VPC, and the vSwitch of the scaling groups from which scaling configurations are exported and the scaling groups to which the scaling configurations are imported. If the network configurations are different, ECS instances may fail to be created based on the imported scaling configurations.
- In the Preview section, select the scaling configurations that you want to import. Note If you cannot select the scaling configurations in the Preview section, check whether the network types or the VPCs of the scaling group from which the scaling configurations are exported and the scaling group to which you want to import the scaling configurations are the same.
- Optional: To make sure that the names of the scaling configurations are unique in a scaling group, select Add a suffix for imported scaling configurations.
- Click Import, and then click OK.