You can stop Elastic Compute Service (ECS) instances in standard mode or economical mode.
If you stop an instance, services that are running on the instance are interrupted. Proceed with caution when you perform this operation.
Stop an instance in the ECS console
Go to ECS console - Instance.
In the top navigation bar, select the region and resource group of the resource that you want to manage.
Click the ID of the ECS instance that you want to stop to go to the instance details page. In the upper-right corner of the page, click All Actions. In the pane that appears, search for and click Stop.
Configure the Stopped By or Stop Mode parameter and click Confirm.
Parameter | Description |
Stopped By |
|
Stop Mode | Important Only pay-as-you-go instances that reside in virtual private clouds (VPCs) support this parameter.
|
When the instance is stopped, the instance enters the Stopped state.
Stop instances by calling API operations
You can stop one or more ECS instances by calling the following API operations. For information about how to call API operations, see Integration overview.
StopInstance: stops an ECS instance that is in the Running state.
StopInstances: stops one or more ECS instances that are in the Running state.
FAQ
What do I do if an ECS instance remains in the Stopping state for an extended period of time?
If your ECS instance remains in the Stopping state for an extended period of time, the instance may be in a normal or abnormal stop process. Check the stop progress of the operating system and resolve the preceding issue based on the stop status of the operating system.
Normal stop: The ECS instance is being stopped as expected, and the stop process is relatively long because the operating system is installing system patches or the low operating system specifications cause the delayed stop response.
Abnormal stop: An instance stop exception occurs. For example, the stop process does not start because an error occurs in the operating system when you stop the instance.
Solution:
View the screenshots of the ECS instance to obtain the stop progress of the operating system.
For more information, see View system logs and screenshots.
If you cannot identify the issue, connect to the instance by using Virtual Network Computing (VNC) and view the stop progress of the operating system.
For more information, see Connect to an instance by using VNC.
Select a handling method based on the stop status of the operating system.
Normal stop: Wait for the operating system stop process to complete.
Abnormal stop: If an exception occurs, connect to the instance by using VNC and manually handle the stop issue.
You can also forcefully stop an instance as described in this topic based on your business requirements.
ImportantA force stop operation is equivalent to a physical shutdown and may cause data loss if instance data is not written to disks.