This topic describes how to remove an Elastic Compute Service (ECS) instance from the Standby state. After the ECS instance is removed from the Standby state, the ECS instance enters the In Service state and resumes to provide services.
Background information
You can remove an ECS instance from the Standby state by using one of the following
methods:
- Synchronously remove the ECS instance from the Standby state: Auto Scaling receives and handles the request to remove the ECS instance from the Standby state in the backend. If your scaling group contains a large amount of resources, the synchronization operation takes a long time, which may causes timeout errors. In this case, we recommend that you asynchronously remove the ECS instance from the Standby state.
- Asynchronously remove the ECS instance from the Standby state: A scaling activity is immediately triggered after you select the Asynchronously Remove from Standby option in the Auto Scaling console. You can view the result of the scaling activity on the Scaling Activities tab. Compared with the synchronous operation, the asynchronous operation brings a better interactive experience to users.
After an ECS instance in a scaling group is removed from the Standby state:
- The ECS instance enters the In Service state.
- If the scaling group to which the ECS instance is added is associated with a Server Load Balancer (SLB) instance, the default weight of the ECS instance as the backend server of the SLB instance is 50 when the ECS instance is attached to the SLB instance again.
- When the ECS instance is stopped or restarted, the health check status of the instance is updated.
- When a scale-in activity is triggered in the scaling group, Auto Scaling can remove
the ECS instance from the scaling group.
Note If the lifecycle of the ECS instance that is removed from the Standby state is managed by the scaling group, Auto Scaling releases the ECS instance. If the lifecycle of the ECS instances is not managed by the scaling group, the ECS instance can still run as expected. For information about how to manage the lifecycle of ECS instances, see ECS instance lifecycle in a scaling group.