This topic describes how to manually put instances into or move instances out of the Standby, Protected, or Stopped state.
Instance status description
An instance in a scaling group may be in one of the following states: Adding, Pending Add, In Service, Standby, Protected, Removing, Pending Remove, and Stopped. For more information, see Lifecycle states of instances in a scaling group.
The following table describes the instance states.
Instance category | Before | Operation | After | User guide | API reference |
Elastic Compute Service (ECS) instances or elastic container instances | Protected | Move instances out of the Protected state. | In Service | Manually put instances into the Protected state or move instances out of the Protected state | |
ECS instances or elastic container instances | In Service | Put instances into the Protected state. | Protected | ||
ECS instances | In Service, Standby, and Protected | Put instances into the Stopped state. | Stopped Note The status of an instance that is being put into the Standby state is temporarily set to Removing. | None | |
ECS instances or elastic container instances | In Service, Standby, and Protected | Delete instances or remove instances from scaling groups. | Stateless Note An instance is in the Removing state when it is being deleted or removed from a scaling group. | ||
ECS instances or elastic container instances | In Service | Put instances into the Standby state. | Standby | Manually put instances into the Standby state or move instances out of the Standby state | |
ECS instances or elastic container instances | Standby | Move instances out of the Standby state. | In Service | ||
ECS instances or elastic container instances | In Service, Standby, and Protected | Remove instances from scaling groups. | Instances that are removed from scaling groups are not stopped or released and are independent of scaling groups. | ||
Managed instances | In Service | Remove instances from scaling groups. | Managed instances that are removed from scaling groups are not stopped or released and are independent of scaling groups. | None |
Usage notes
Before you put ECS instances or elastic container instances into the Standby or Protected state or move ECS instances or elastic container instances out of the Standby or Protected state, take note of the following table:
Phase | Description |
Into the Standby state |
|
Out of the Standby state |
|
Into the Protected state |
|
Into the Stopped state | After you put ECS instances into the Stopped state, the ECS instances no longer provide services. You are not charged for specific resources. For example, after you put a pay-as-you-go ECS instance into the Stopped state, you do not need to manually enable the economical mode for the instance in the ECS console. You are not charged for released resources, such as the vCPUs, memory size, and public IP addresses. However, you are charged for retained resources, such as cloud disks and elastic IP addresses (EIPs). |
Manually put instances into the Standby state or move instances out of the Standby state
You can put ECS instances or elastic container instances that you no longer require into the Standby state. You can also move ECS instances or elastic container instances out of the Standby state.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
Find the scaling group whose instances you want to operate and click Details in the Actions column.
- In the upper part of the scaling group details page, click the Instances tab.
Click the Auto Created tab or the Manually Added tab.
If you want to put ECS instances or elastic container instances that are automatically created into the Standby state, click the Auto Created tab.
If you want to put ECS instances or elastic container instances that are manually added into the Standby state, click the Manually Added tab.
Manually put instances into the Standby state or move instances out of the Standby state.
Manually put instances into the Standby state
Use one of the following methods to put ECS instances or elastic container instances into the Standby state:
To put a single instance into the Standby state, find the ECS instance or elastic container instance and click Switch to Standby in the Actions column.
To put multiple instances into the Standby state at the same time, find the ECS instances or elastic container instances and click Switch to Standby in the lower part of the page.
In the Switch to Standby dialog box, specify whether to asynchronously put instances into the Standby state.
Option
Description
Procedure
Synchronously put instances into the Standby state.
After you click OK in the Switch to Standby dialog box, the Auto Scaling backend processes the request to put the selected instances into the Standby state. If the number of instances that you want to put into the Standby state is large, the Auto Scaling backend may take a long period of time to process the request. In this case, we recommend that you select the asynchronous mode.
In the Switch to Standby dialog box, click OK.
Asynchronously put instances into the Standby state.
If you select the Asynchronously Switch to Standby option in the Switch to Standby dialog box, the Auto Scaling console immediately displays the operation result. You can check whether the status of instances changes to the Standby state in the Auto Scaling console. Compared with the synchronous mode, the asynchronous mode provides better interactive experience for users.
In the Switch to Standby dialog box, select the Asynchronously Switch to Standby option and click OK.
On the Scaling Rules and Activities tab, click the Scaling Activities tab. You can check the execution result of the scaling activity during which instances are put into the Standby state.
Manually move instances out of the Standby state
Use one of the following methods to move ECS instances or elastic container instances out of the Standby state:
If you want to move a single instance out of the Standby state, find the ECS instance or elastic container instance and click Remove from Standby in the Actions column.
If you want to move multiple instances out of the Standby state at the same time, select the ECS instances or elastic container instances and click Remove from Standby in the lower part of the page.
In the Remove from Standby dialog box, specify whether to asynchronously move instances out of the Standby state.
Option
Description
Procedure
Synchronously move instances out of the Standby state.
After you click OK in the Remove from Standby dialog box, the Auto Scaling backend processes the request to move instances out of the Standby state. If the number of instances that you want to move out of the Standby state is large, the Auto Scaling backend may take a long period of time to process the request. In this case, we recommend that you select the asynchronous mode.
In the Remove from Standby dialog box, click OK.
Asynchronously move instances out of the Standby state.
If you select the Asynchronously Remove from Standby option in the Remove from Standby dialog box, the Auto Scaling console immediately displays the operation result. You can check whether the instances are moved out of the Standby state in the Auto Scaling console. Compared with the synchronous mode, the asynchronous mode provides better interactive experience for users.
In the Remove from Standby dialog box, select the Asynchronously Remove from Standby option and click OK.
On the Scaling Rules and Activities tab, click the Scaling Activities tab. You can check the execution result of the scaling activity during which the instances are moved out of the Standby state.
Manually put instances into the Protected state or move instances out of the Protected state
You can put ECS instances or elastic container instances that you do not want to remove from scaling groups into the Protected state. You can also move ECS instances or elastic container instances out of the Protected state.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
Find the scaling group whose instances you want to operate and click Details in the Actions column.
- In the upper part of the scaling group details page, click the Instances tab.
Click the Auto Created tab or the Manually Added tab.
If you want to put ECS instances or elastic container instances that are automatically created into the Protected state, click the Auto Created tab.
If you want to put ECS instances or elastic container instances that are manually added into the Protected state, click the Manually Added tab.
Manually put instances into the Protected state or move instances out of the Protected state.
Manually put instances into the Protected state
Use one of the following methods to put ECS instances or elastic container instances into the Protected state:
If you want to put a single ECS instance or elastic container instance into the Protected state, find the ECS instance or elastic container instance and click Switch to Protected in the Actions column.
If you want to put multiple ECS instances or elastic container instances into the Protected state at the same time, select the ECS instances or elastic container instances and click Switch to Protected in the lower part of the page.
Click OK.
Manually move instances out of the Protected state
Use one of the following methods to move ECS instances or elastic container instances out of the Protected state:
If you want to move a single ECS instance or elastic container instance out of the Protected state, find the ECS instance or elastic container instance and click Remove from Protected in the Actions column.
If you want to move multiple ECS instances or elastic container instances out of the Protected state at the same time, select the ECS instances or elastic container instances and click Remove from Protected in the lower part of the page.
Click OK.
Manually put instances into the Stopped state.
You can put only ECS instances that reside in virtual private clouds (VPCs) into the Stopped state. If the Instance Reclaim Mode parameter of your scaling group is set to Economical Mode and the ECS instances in your scaling group are created by Auto Scaling, you can manually put the ECS instances into the Stopped state. During scale-outs, Auto Scaling preferentially starts the ECS instances that are in the Stopped state.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
Find the scaling group whose instances you want to operate and click Details in the Actions column.
- In the upper part of the scaling group details page, click the Instances tab.
Click the Auto Created tab.
Find the ECS instance that you want to put into the Stopped state and choose > Switch to Stopped in the Actions column.
In the Delete Scaling Group message, click OK.
Manually remove managed instances from scaling groups
You can manually remove managed instances from only scaling groups of the ECS type. If you do not use scaling groups to manage the lifecycles of managed instances, you must manually remove managed instances from scaling groups. Managed instances are not released after you remove them from scaling groups.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select the region where Auto Scaling is activated.
Find the scaling group whose instances you want to operate and click Details in the Actions column.
- In the upper part of the scaling group details page, click the Instances tab.
Click the Managed Instance tab.
Use one of the following methods to remove managed instances from the scaling group:
If you want to remove a single instance, find the managed instance that you want to remove, and click Remove from Scaling Group in the Actions column.
If you want to remove multiple managed instances from the scaling group at the same time, select the managed instances and click Remove from Scaling Group in the lower part of the managed instance list.
In the dialog box that appears, select Modify Expected Number of Instances and click OK. By default, Modify Expected Number of Instances is selected.
If you select Modify Expected Number of Instances, the expected number of instances decreases after you remove a specific number of instances from the scaling group.
If you do not select Modify Expected Number of Instances, the expected number of instances does not decrease after you remove a specific number of instances from the scaling group.