After you create a scaling configuration in Auto Scaling, you can apply, modify, delete, export, and import scaling configurations as your business requirements change. The active scaling configuration of a scaling group determines how the scaling group creates instances when it scales out. Exporting and importing scaling configurations helps you back up configurations locally and reuse them in other scaling groups.
Apply a scaling configuration
After you apply a scaling configuration, the scaling group automatically creates ECS instances or Elastic Container Instance (ECI) instances based on that scaling configuration when scale-out conditions are met.
In an Auto Scaling group, you can create multiple scaling configurations, and a maximum of 70 scaling configurations are allowed. However, only one scaling configuration can be Active at a time within an Auto Scaling group. When a new scaling configuration is selected, the previously active one becomes Pending.
Go to the scaling configuration management page.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group to manage. In the Actions column, click View Details.
At the top of the page, click the Scaling Configurations tab.
Find the scaling configuration to apply. In the Actions column, click Apply.
In the dialog box that appears, click OK to apply the scaling configuration.
Modify a scaling configuration
If a scaling configuration no longer meets your business requirements, modify it to accommodate the changed configuration requirements of the ECS instances or ECI instances in the scaling group.
After you modify a scaling configuration, the ECS instances or ECI instances that are newly created based on that scaling configuration use the new configuration in Auto Scaling. The configurations of the existing ECS instances or ECI instances in the scaling group are not affected.
Go to the scaling configuration management page.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group to manage. In the Actions column, click View Details.
At the top of the page, click the Scaling Configurations tab.
Find the scaling configuration to modify. In the Actions column, click Edit to go to the Modify Scaling Configuration page.
Modify a scaling configuration (ECS-type scaling group)
On the Modify Scaling Configuration page, follow the on-screen instructions to modify the basic information, instance types, images, and disks of the scaling configuration.
For information about the configuration items, see Parameters.
After you complete the modification, click Modify. In the Preview Scaling Configuration dialog box, confirm the scaling configuration.
After you confirm that the modification is correct, click Modify to complete the modification.
Modify a scaling configuration (ECI-type scaling group)
On the Modify Scaling Configuration page, modify the basic configuration and other configuration information.
For information about the configuration items, see Parameters.
After you complete the modification, click Confirm Configuration and confirm the configuration on the page.
After you confirm that the configuration is correct, click Modify to complete the modification of the scaling configuration.
(Optional) Apply the scaling configuration.
If the scaling configuration that you modified is not applied, you can follow the on-screen instructions to apply it after the modification is complete. You can also apply the scaling configuration later. For more information, see Apply a scaling configuration.
Delete a scaling configuration
Delete unnecessary scaling configurations to simplify management and prevent the configurations from consuming the scaling configuration quota.
You can delete a scaling configuration only if it is in the Pending state and no ECS instances or ECI instances in the scaling group were automatically created based on that scaling configuration.
Go to the scaling configuration management page.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group to manage. In the Actions column, click View Details.
At the top of the page, click the Scaling Configurations tab.
Find the scaling configuration to delete. In the Actions column, click Delete.
In the Delete Scaling Configuration dialog box that appears, click OK to complete the deletion.
Export or import scaling configurations
This operation is only applicable to ECS-type scaling groups. You can export the scaling configurations from a scaling group for local backup or quickly import them into other scaling groups. You can also import the exported scaling configurations into other scaling groups to improve the efficiency of creating scaling configurations.
Before importing the scaling configuration, please prepare the scaling configuration file in advance and ensure that the network types of the two scaling groups are the same. If the network type of the scaling group is VPC, then the VPC must also be the same.
Go to the scaling configuration management page.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group to manage. In the Actions column, click View Details.
At the top of the page, click the Scaling Configurations tab.
Export or import scaling configurations.
Export scaling configurations
Click Export Scaling Configurations.
The exported file is in the .json format. For example: configuration-2024-01-29-a0c6ffb8-a3ac-4097-b145-92a722b1****.json.
Import scaling configurations
Click Import Scaling Configurations.
In the Select File section, click Select File, and then browse for and select the .json file to import.
ImportantThe total number of imported scaling configurations must be less than 10. The import method is non-overwriting, and you must ensure that the network-related configurations of the source scaling group and the current scaling group are as similar as possible (that is, the network type, VPC, vswitch, and other settings), otherwise the imported scaling configurations may not be able to scale ECS instances properly.
In the Preview section, select the scaling configurations to import.
NoteIf you cannot select a scaling configuration in the Preview section, check the network settings of the scaling group from which the scaling configuration was exported. Its network type or VPC may be different from that of the current scaling group.
(Optional) To avoid duplicate names with the existing scaling configurations in the scaling group, select Add a suffix for imported scaling configurations.
Click Import. After the import succeeds, a message box appears. Click OK to complete the import of the scaling configurations.
(Optional) Apply the imported scaling configuration. For more information, see Apply a scaling configuration.
References
You can also manage scaling configurations by calling API operations.
To check whether a scaling configuration meets your business requirements before you apply it, call an API operation. For more information, see:
To delete a scaling configuration, call an API operation. For more information, see:
To modify a scaling configuration that no longer meets your business requirements, call an API operation. For more information, see:
To change the active scaling configuration of the current scaling group, call an API operation. For more information, see: ModifyScalingGroup