After you create a scaling configuration, you can manage the scaling configuration based on your business requirements. For example, you can apply a scaling configuration to change the instance configuration source of your scaling group. You can modify or delete a scaling configuration to meet your business requirements. You can also import or export a scaling configuration to improve the efficiency of creating scaling configurations.
Apply or enable scaling configurations
You can apply or enable a scaling configuration to change the instance configuration source of your scaling group. When the scale-out requirements are met, Auto Scaling creates Elastic Compute Service (ECS) instances or elastic container instances based on the new scaling configuration.
You can create up to 70 scaling configurations in a scaling group. However, only one scaling configuration can be in the Active state in the scaling group. After you apply a new scaling configuration, the original scaling configuration exits the Active state.
Go to the Scaling Configurations tab.
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group whose scaling configuration you want to manage and click Details in the Actions column.
In the upper part of the details 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.
In the Enable Scaling Configuration message, click OK.
Modify scaling configurations
If an existing scaling configuration cannot meet your business requirements, you can modify the scaling configuration to create the desired ECS instances or elastic container instances. To modify the scaling configuration, perform the following steps:
After you modify the scaling configuration, Auto Scaling creates ECS instances or elastic container instances based on the new scaling configuration. The modification does not affect the configurations of existing ECS instances or elastic container instances in your scaling group.
Go to the Scaling Configurations tab.
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group whose scaling configuration you want to manage and click Details in the Actions column.
In the upper part of the details page, click the Instance Configuration Sources tab.
Click the Scaling Configurations tab.
Find the scaling configuration that you want to modify and click Edit in the Actions column to enter the Modify Scaling Configuration page. Perform the following steps to modify the scaling configuration based on your business requirements:
Modify scaling configurations of the ECS type
On the Modify Scaling Configuration page, modify the basic information, instance type, image, and disks of the scaling configuration as prompted.
For information about specific parameters, see Parameters.
Click Modify. In the Preview Scaling Configuration dialog box, confirm the information about the scaling configuration.
Click Modify.
Modify scaling configurations of the Elastic Container Instance type
On the Modify Scaling Configuration page, modify the information about the scaling configuration as prompted.
For information about specific parameters, see Parameters.
Click Confirm Configuration. In the Confirm step, confirm the information about the scaling configuration.
Click Modify.
Optional. Enable the scaling configuration.
If the scaling configuration is not in the Active state, you can enable the scaling configuration by repeating Step 2 immediately after you modify the scaling configuration. You can also enable the scaling configuration at a subsequent time. For more information, see Apply or enable scaling configurations.
Delete scaling configurations
If you no longer require a scaling configuration, you can delete the scaling configuration to improve your management efficiency and free up the scaling configuration quota.
Before you delete a scaling configuration, make sure that the scaling configuration is not in the Active state and the scaling group contains no ECS instance or elastic container instance automatically created from the scaling configuration.
Go to the Scaling Configurations tab.
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group whose scaling configuration you want to manage and click Details in the Actions column.
In the upper part of the details page, click the Instance Configuration Sources tab.
Click the Scaling Configurations tab.
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
The import and export operations apply only to scaling groups of the ECS type. You can export scaling configurations from a scaling group to back up the configurations on your on-premises computer, or import scaling configurations into another scaling group. You can export scaling configurations from one scaling group and import them into another scaling group to increase the efficiency of creating scaling configurations.
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 source scaling group is the same as the network type of the destination scaling group. If the network type of the two scaling groups is virtual private cloud (VPC), the scaling groups must reside in the same VPC.
Go to the Scaling Configurations tab.
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group whose scaling configuration you want to manage and click Details in the Actions column.
In the upper part of the details page, click the Instance Configuration Sources tab.
Click the Scaling Configurations tab.
Export or import scaling configurations.
Export scaling configurations
Click Export Scaling Configurations.
A .json file is exported. 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 .. to select the .json file that you want to import.
ImportantYou can import up to 9 scaling configurations at the same time. The scaling configurations that you import into a scaling group do not overwrite the existing scaling configurations in the scaling group. Make sure that the network configurations, such as the network type, VPC, and vSwitch, of the source scaling group are the same as the network configurations of the destination scaling group. If the network configurations are different between the scaling groups, 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.
NoteIf you cannot select the scaling configurations in the Preview section, check whether the source and destination scaling groups use different network types or VPCs.
Optional. To prevent duplicate scaling configuration names in the scaling group, select Add a suffix for imported scaling configurations.
Click Import. If the import is successful, click OK in the message that appears.
Optional. After the import is complete, put an imported scaling configuration into the Active state based on your business requirements. For more information, see Apply or enable scaling configurations.
References
Before you apply a scaling configuration, you can call one of the following API operations to check whether the scaling configuration meets your business requirements:
To delete a scaling configuration, you can call one of the following API operations:
If your scaling configuration cannot meet your business requirements, you can call one of the following API operations to modify the scaling configuration:
To modify the scaling group of the scaling configuration that is in the Active state, you can call the ModifyScalingGroup operation.