This topic describes how to manually remove or delete Elastic Compute Service (ECS) instances or elastic container instances that you no longer need in a scaling group.

Prerequisites

  • The scaling group is in the Enabled state.
  • The scaling group has no scaling activities in progress.

Background information

  • You can manually remove ECS instances or elastic container instances from a scaling group without the need to wait for the cooldown period to expire.
  • If the number of instances in the scaling group is less than the specified minimum number after you manually remove the ECS instances or elastic container instances, the operation fails.
  • A scaling activity may fail to be executed after it is triggered. You can check the execution result in the details of the scaling activity. For more information, see View the details of a scaling activity.

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. Select the source of an ECS instance.
    • To select an ECS instance that is automatically created, click the Auto Created tab.
    • To select an ECS instance that is manually added, click the Manually Added tab.
  7. Manually remove or delete instances.

    If you delete an ECS instance or elastic container instance, the instance is removed from the scaling group and released. Whether you can delete an instance that is manually added to a scaling group is subject to the management mode of the instance. If the lifecycle of the instance is not managed by the scaling group, you can only remove the instance from the scaling group but cannot delete the instance. If the lifecycle of the instance is managed by the scaling group, you can remove the instance from the scaling group and delete the instance.

    • Manually remove instances
      • To remove a single instance, find the ECS instance or elastic container instance that you want to remove from the scaling group and choose More icon > Remove from Scaling Group in the Actions column.
      • To remove multiple instances, select multiple ECS instances or elastic container instances that you want to remove from the scaling group and click Remove from Scaling Group at the bottom of the page.
    • Manually delete instances
      • To delete a single instance, find the ECS instance or elastic container instance that you want to delete and choose More icon > Delete instance in the Actions column.
      • To delete multiple instances, select multiple ECS instances or elastic container instances that you want to delete and click Delete Instance at the bottom of the page.
  8. Specify whether to automatically disassociate the ECS instances or elastic container instances from the Server Load Balancer (SLB) instance and ApsaraDB RDS instance and click OK.
    Note When you delete ECS instances, you must specify whether to disassociate the ECS instances from the related SLB instances and ApsaraDB RDS instances. When you delete elastic container instances, you need to only specify whether to disassociate the elastic container instances from the related SLB instances.