Manage scaling configurations

Updated at:
Copy as MD

After you create a scaling configuration, you can manage it as needed. For example, you can apply a scaling configuration to a scaling group. If a configuration no longer meets your needs, you can modify or delete it. You can also export and import scaling configurations to create them more efficiently.

Apply a scaling configuration

You can apply a scaling configuration to make it active for a scaling group. When applied, Auto Scaling uses this configuration as a template to automatically create ECS or ECI instances during a scale-out.

Note

A scaling group can have up to 70 scaling configurations, but only one can be in the Active state at a time. When you apply a new scaling configuration, the previously active one becomes Pending.

  1. Navigate to the management page for scaling configurations.

    1. Sign in to the Auto Scaling console.

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

    3. In the top navigation bar, select a region.

    4. Find the scaling group that you want to manage and click View Details in the Actions column.

    5. At the top of the page, click the Scaling Configurations tab.

  2. Find the scaling configuration that you want to apply and click Apply in the Actions column.

  3. In the dialog box that appears, click OK to apply the scaling configuration.

Modify scaling configuration

If a scaling configuration no longer meets your needs, you can modify it.

Important

After you modify a scaling configuration, new instances launched from it use the updated settings. This change does not affect existing instances in the scaling group.

  1. Navigate to the management page for scaling configurations.

    1. Sign in to the Auto Scaling console.

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

    3. In the top navigation bar, select a region.

    4. Find the scaling group that you want to manage and click View Details in the Actions column.

    5. At the top of the page, click the Scaling Configurations tab.

  2. Find the scaling configuration that you want to modify and click Edit in the Actions column to go to the Modify Scaling Configuration page. Follow the steps below to modify the scaling configuration.

    ECS group

    1. On the Modify Scaling Configuration page, modify the basic information, instance type, image, and cloud disk settings.

      For parameter details, see Configuration parameters.

    2. After you make the changes, click Edit. In the Preview Scaling Configuration dialog box, confirm the configuration.

    3. After confirming the changes, click Modify to save them.

    ECI group

    1. On the Modify Scaling Configuration page, modify the basic configuration and other settings.

      For parameter details, see Configuration parameters.

    2. After you make the changes, click Confirm Configuration to review your settings.

    3. After you confirm the configuration is correct, click Modify to save the changes.

  3. (Optional) Apply the scaling configuration.

    If you modified an inactive scaling configuration, you can apply it immediately or at a later time. For more information, see Apply a scaling configuration.

Delete scaling configuration

You can delete unnecessary scaling configurations to simplify management and avoid consuming your quota.

Important

You can delete a scaling configuration only if it is in the Pending state and no ECS or ECI instances launched from it exist in the scaling group.

  1. Navigate to the management page for scaling configurations.

    1. Sign in to the Auto Scaling console.

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

    3. In the top navigation bar, select a region.

    4. Find the scaling group that you want to manage and click View Details in the Actions column.

    5. At the top of the page, click the Scaling Configurations tab.

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

  3. In the Delete Scaling Configuration dialog box, click OK.

Export or import scaling configurations

This operation applies only to ECS scaling groups. You can export a configuration for local backup or import it into another scaling group to reuse its settings, which improves efficiency.

Important

Before importing a scaling configuration, have the configuration file ready. Ensure the source and destination scaling groups share the same network type and, if applicable, the same Virtual Private Cloud (VPC).

  1. Navigate to the management page for scaling configurations.

    1. Sign in to the Auto Scaling console.

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

    3. In the top navigation bar, select a region.

    4. Find the scaling group that you want to manage and click View Details in the Actions column.

    5. At the top of the page, click the Scaling Configurations tab.

  2. Export or import a scaling configuration.

    Export

    Click Export.

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

    Import

    1. Click Import Scaling Configurations.

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

      Important

      You can import a maximum of 10 scaling configurations at a time. This import operation does not overwrite existing configurations. Ensure the source and current scaling groups use the same network settings, including network type, VPC, and VSwitch. Otherwise, the imported scaling configuration may fail to launch ECS instances.

    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 the network settings of the scaling group from which the configurations were exported. The network type or VPC of the source scaling group may not match that of the current one.

    4. (Optional) To prevent name conflicts with existing scaling configurations in the scaling group, select the Add a suffix for imported scaling configurations checkbox.

    5. Click Import. After the import is successful, a dialog box appears. Click OK to close the dialog box.

    6. (Optional) After you import scaling configurations, you can apply one of them. For more information, see Apply a scaling configuration.

References