All Products
Search
Document Center

Auto Scaling:Manage scaling configurations

Last Updated:Feb 21, 2024

After you create a scaling configuration, you can operate the scaling configuration based on your business requirements. For example, you can select an active 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 creation efficiency of scaling configurations.

Apply a scaling configuration

You can create up to 70 scaling configurations in a scaling group. You can select an active scaling configuration to change the instance configuration source of your scaling group based on your business requirements.

  1. Log on to the Auto Scaling console.

  2. In the left-side navigation pane, click Scaling Groups.

  3. In the top navigation bar, select the region where Auto Scaling is activated.

  4. Find the desired scaling group and click Details in the Actions column.

  5. In the upper part of the scaling group details page, click the Instance Configuration Sources tab.

  6. Click the Scaling Configurations tab.

  7. Find the desired scaling configuration and click Apply in the Actions column.

    Note

    A scaling group can contain only one scaling configuration that is in the Active state. After you apply a new scaling configuration, the previous active scaling configuration enters the Inactive state.

  8. In the Enable Scaling Configuration message, 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 is triggered.

Modify or delete a scaling configuration

Scenarios

Scenario

Impact

If your scaling configuration cannot meet your business requirements, you can modify the scaling configuration.

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.

If your scaling configuration is in the Inactive state and your scaling group contains no ECS instances or elastic container instances that are automatically created based on the scaling configuration, you can delete the scaling configuration.

You can delete scaling configurations that are no longer needed to free up the scaling configuration quota.

Procedure

  1. Log on to the Auto Scaling console.

  2. In the left-side navigation pane, click Scaling Groups.

  3. In the top navigation bar, select the region where Auto Scaling is activated.

  4. Find the desired scaling group and click Details in the Actions column.

  5. In the upper part of the scaling group details page, click the Instance Configuration Sources tab.

  6. Click the Scaling Configurations tab.

  7. Modify or delete the scaling configuration.

    Modify a scaling configuration of the ECS type

    1. Find the desired scaling configuration and click Edit in the Actions column.

    2. Modify parameter settings in the Basic Information, Instance and Image, Storage, and other sections based on your business requirements.

      For information about specific parameters for creating a scaling configuration of the ECS type, see Create a scaling configuration of the ECS type.

      If your scaling group is associated with a Classic Load Balancer (CLB, formerly known as Server Load Balancer or SLB) instance, you can reconfigure the SLB Weight parameter in the Advanced Settings section. The SLB Weight parameter specifies the weight of an ECS instance that is created based on the scaling configuration as a backend server of the associated CLB instance. Valid values: 1 to 100. Default value: 50.

      Important

      The SLB Weight parameter is displayed in the Advanced Settings section only when your scaling group is associated with a CLB instance.

      If your scaling group is associated with a CLB instance, the default weight of each ECS instance is 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 SLB Weight parameter to 100 on the Modify Scaling Configuration page.

    3. Click Modify.

    4. After you confirm the configurations, click Modify in the Preview Scaling Configuration dialog box.

    5. In the The scaling configuration is modified. message, click Enable or View.

    Modify a scaling configuration of the Elastic Container Instance type

    1. Find the desired scaling configuration and click Edit in the Actions column.

    2. Modify parameter settings in the Basic Settings and Other Settings (Optional) steps based on your business requirements.

      For information about specific parameters for creating a scaling configuration of the Elastic Container Instance type, see Create a scaling configuration of the Elastic Container Instance type.

    3. Click Confirm Configuration.

    4. After you confirm the configurations, click Modify in the Confirm step.

    5. In the Success message, click View.

    Delete a scaling configuration

    1. Find the scaling configuration that you want to delete and click Delete in the Actions column.

    2. In the Delete Scaling Configuration message, click OK.

Import or export a scaling configuration

The import and export operations are applicable to only scaling groups of the ECS type. You can export scaling configurations from a scaling group to back them up on your on-premises computer, or import them into another scaling group. You can export scaling groups from one scaling group and import them into another scaling group to increase the creation efficiency of scaling configurations.

Important

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.

  1. Log on to the Auto Scaling console.

  2. In the left-side navigation pane, click Scaling Groups.

  3. In the top navigation bar, select the region where Auto Scaling is activated.

  4. Find the desired scaling group and click Details in the Actions column.

  5. In the upper part of the scaling group details page, click the Instance Configuration Sources tab.

  6. Click the Scaling Configurations tab.

  7. Export or import a scaling configuration

    Export a scaling configuration

    Click Export Scaling Configurations.

    A .json file is exported. Example: configuration-2024-01-29-a0c6ffb8-a3ac-4097-b145-92a722b1****.json.

    Import a scaling configuration

    1. Click Import Scaling Configurations.

    2. In the Select File section, click Select File... and select the .json file that you want to import.

      Important

      You can import up to 10 scaling configurations at a 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.

    3. 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 source and destination scaling groups use different network types or VPCs.

    4. (Optional) To prevent duplicate scaling configuration names in the scaling group, select Add a suffix for imported scaling configurations.

    5. Click Import, and then click OK.

References