If you set Instance Reclaim Mode to Economical Mode when you create a scaling group, you can manually put an Elastic Compute Service (ECS) instance in the scaling group into the Stopped state. When a scale-out activity is triggered, Auto Scaling preferentially adds the ECS instances that are in the Stopped state to the scaling group.

Prerequisites

  • The scaling group must reside in a virtual private cloud (VPC).
  • The Instance Reclaim Mode parameter of the scaling group is Economical Mode.
  • The scaling group contains only the ECS instances that are automatically created.

Background information

After you put an ECS instance in the scaling group into the Stopped state, the ECS instance cannot provide services, and you are no longer charged for some resources. Therefore, you do not need to manually turn on Economical Mode in the ECS console. After you put an ECS instance into the Stopped state, the ECS instance cannot provide services, and resources such as the vCPUs, memory, and public IP addresses of the instance are released. You are no longer charged for these resources. However, you are still charged for other resources such as disks and EIPs.

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 a region.
  4. Find a scaling group and go to the details page of the scaling group. You can use one of the following methods to go to the details page:
    • Click the ID of the scaling group in the Scaling Group Name/ID column.
    • Click Details in the Actions column of the scaling group.
  5. In the upper part of the page, click the Instances tab.
  6. Click the Auto Created tab.
  7. Find the ECS instance that you want to manage and choose more > Switch to Stopped in the Actions column.
  8. Click OK.