This topic describes how to manually put an instance into the Standby, Protected, or Stopped state, and how to move it out of the Standby and Protected states.
Instance states
Instances in a scaling group can be in one of the following service states: Adding, Pending Add, In Service, Standby, Protected, Removing, Pending Remove, and Stopped. For more information about the states of instances in a scaling group, see Lifecycle states of instances in a scaling group.
The following table describes the manual state changes for instances in a scaling group.
|
Instance type |
Initial state |
Actions |
Final state |
Console |
API |
|
ECS instance or elastic container instance (ECI) |
Protected |
Move out of Protected |
In Service |
Manually put an instance into or move it out of the Protected state |
|
|
ECS instance or elastic container instance (ECI) |
In Service |
Put into Protected |
Protected |
||
|
ECS instance |
In Service, Standby, or Protected |
Put into Stopped |
Stopped Note
While an instance is being put into the Stopped state, it is in the Removing state. |
None |
|
|
ECS instance or elastic container instance (ECI) |
In Service, Stopped, or Protected |
Delete instance or remove from scaling group |
Stateless Note
While an instance is being removed or deleted, it is in the Removing state. |
||
|
ECS instance or elastic container instance (ECI) |
In Service |
Put into Standby |
Standby |
Manually put an instance into or move it out of the Standby state |
|
|
ECS instance or elastic container instance (ECI) |
Standby |
Move out of Standby |
In Service |
||
|
ECS instance or elastic container instance (ECI) |
Standby, In Service, or Protected |
remove from scaling group |
The removed instance is not stopped or released and exists independently of the scaling group. |
||
|
managed instance |
In Service |
remove from scaling group |
The removed managed instance is not stopped or released and exists independently of the scaling group. |
None |
Notes
Note the following effects when you put an ECS instance or an elastic container instance (ECI) into the Standby, Protected, or Stopped state, or move it out of the Standby state.
|
Stage |
Description |
|
After an instance is put into the Standby state |
|
|
After an instance is moved out of the Standby state |
|
|
After an instance is put into the Protected state |
|
|
After an instance is put into the Stopped state |
When an ECS instance in a scaling group enters the Stopped state, it is stopped and no longer serves traffic. You are no longer charged for some of its resources. For example, you do not need to manually enable Economical Mode for the pay-as-you-go instance in the ECS console. The associated vCPUs, memory, and fixed public IP address are released, and charges for them stop. However, other resources such as cloud disks and elastic IP addresses (EIPs) are retained and continue to incur charges. |
Enter or exit Standby state
You can place temporarily idle ECS or elastic container instances (ECI) into the Standby state, and later move them back into service.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
-
Find the target scaling group and click View Details in the Actions column.
At the top of the page, click the Instance Management tab.
-
Find the instance in the appropriate list.
-
To select an automatically created instance, go to the Auto Created list.
-
To select a manually added instance, go to the Manually Added list.
-
-
Manually put an instance into or move it out of the Standby state.
Enter Standby
-
Use one of the following methods to put an instance into the Standby state:
-
Single instance: Find the target instance and click Switch to Standby State in the Actions column.
-
Multiple instances: Select the target instances and click Switch to Standby State at the bottom of the instance list.
-
-
In the Switch to Standby State dialog box, choose an operation method.
Actions
Description
Procedure
Synchronous operation
The task is processed in the background after you submit it. This can cause long waits or timeouts for scaling groups with many resources. We recommend choosing the asynchronous method in such scenarios.
Clear the Asynchronously Switch to Standby checkbox and click OK.
Asynchronous operation
The console immediately confirms task submission, providing a better user experience than a synchronous operation. You can view the final execution status on the Scaling Activities tab.
Select the Asynchronously Switch to Standby checkbox and click OK.
On the Scaling Rules and Activities tab, click the Scaling Activities tab to view the execution status.
Exit Standby
-
Use one of the following methods to move an instance out of the Standby state:
-
Single instance: Find the target instance and click Remove from Standby in the Actions column.
-
Multiple instances: Select the target instances and click Remove from Standby at the bottom of the instance list.
-
-
In the Remove from Standby dialog box, choose an operation method.
Actions
Description
Procedure
Synchronous operation
The task is processed in the background after you submit it. This can cause long waits or timeouts for scaling groups with many resources. We recommend choosing the asynchronous method in such scenarios.
Clear the Asynchronously Remove from Standby checkbox and click OK.
Asynchronous operation
The console immediately confirms task submission, providing a better user experience than a synchronous operation. You can view the final execution status on the Scaling Activities tab.
Select the Asynchronously Remove from Standby checkbox and click OK.
On the Scaling Rules and Activities tab, click the Scaling Activities tab to view the execution status.
-
Enter or exit Protected state
You can put an ECS or elastic container instance (ECI) into the Protected state to prevent its removal from a scaling group, and you can also move it out of this state.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
-
Find the target scaling group and click View Details in the Actions column.
At the top of the page, click the Instance Management tab.
-
Find the instance in the appropriate list.
-
To select an automatically created instance, go to the Auto Created list.
-
To select a manually added instance, go to the Manually Added list.
-
-
Manually put an instance into or move it out of the Protected state.
Enter Protected
-
Use one of the following methods to put an instance into the Protected state:
-
Single instance: Find the target instance and click Switch to Protected State in the Actions column.
-
Multiple instances: Select the target instances and click Switch to Protected State at the bottom of the instance list.
-
-
Click OK.
Exit Protected
-
Use one of the following methods to move an instance out of the Protected state:
-
Single instance: Find the target instance and click Remove from Protected State in the Actions column.
-
Multiple instances: Select the target instances and click Remove from Protected State at the bottom of the instance list.
-
-
Click OK.
-
Put an instance into Stopped state
This operation applies only to ECS scaling groups in a Virtual Private Cloud (VPC). If the release mode for instances in the scaling group is set to Economical Mode and these instances are automatically created ECS instances, you can manually stop them. When a scale-out event occurs, Auto Scaling preferentially starts the Stopped ECS instances.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
-
Find the target scaling group and click View Details in the Actions column.
At the top of the page, click the Instance Management tab.
-
Find the Auto Created list.
-
Find the target ECS instance. In the Actions column, choose
>Stop Instance. -
Click OK.
Remove managed instances
This operation applies only to scaling groups that contain ECS instances. If you no longer need a scaling group to manage a managed instance, you must manually remove it. The removed managed instance is not released.
Log on to the Auto Scaling console.
In the navigation pane on the left, click Scaling Groups.
In the top navigation bar, select a region.
-
Find the target scaling group and click View Details in the Actions column.
At the top of the page, click the Instance Management tab.
-
Find the Managed Instance list.
-
Use one of the following methods to remove managed instances from the scaling group:
-
Single instance: Find the target managed instance and click Remove from Scaling Group in the Actions column.
-
Multiple instances: Select the target managed instances and click Remove from Scaling Group at the bottom of the list.
-
-
Choose whether to Modify Expected Number of Instances (selected by default), and then click OK.
-
If you select Modify Expected Number of Instances, the expected number of instances decreases by the number of removed instances.
-
If you clear Modify Expected Number of Instances, the expected number of instances does not change after you remove the instances.
-