This topic describes how to stop a preemptible instance and whether the stopped instance can be started under different scenarios.
Background information
The following table describes whether a stopped preemptible instance can be started based on its network type, bidding mode, and stop mode.
Network type | Bidding mode | Stop mode | Startup of a stopped preemptible instance |
---|---|---|---|
Classic network | SpotWithPriceLimit | Standard mode | The stopped instance can be started within the protection period. After the protection period ends:
|
SpotAsPriceGo | Standard mode | The stopped instance can be started within the protection period. After the protection period ends:
| |
VPC | SpotWithPriceLimit | Standard mode | The stopped instance can be started within the protection period. After the protection period ends:
|
Economical mode | If the resource stock of the instance type is sufficient, the stopped instance can be started within the protection period. After the protection period ends:
| ||
SpotAsPriceGo | Standard mode | The stopped instance can be started within the protection period. After the protection period ends:
| |
Economical mode | If the resource stock of the instance type is sufficient, the stopped instance can be started within the protection period. After the protection period ends:
|
Note The economical mode can be enabled only for instances that meet specific conditions. For information about the conditions, see Economical mode.
Procedure
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- Use one of the following methods to stop pay-as-you-go instances:
- To stop a single instance at a time, find the instance and choose Actions column. in the
- To stop multiple instances at a time, select the instances and click Stop in the lower part of the Instances page.
- Configure Stopped By and Stop Mode.
- For a pay-as-you-go instance in the classic network:
- Configure Stopped By. Valid values:
- Stop: stops the instance by shutting it down properly.
- Force Stop: forcibly stops the instance. Forcible stop is equivalent to a physical shutdown, and may cause data loss if instance data has not been written to disks.
- Click OK.
- Configure Stopped By. Valid values:
- For a pay-as-you-go instance in a VPC:
- Configure Stopped By. Valid values:
- Stop: stops the instance by shutting it down properly.
- Force Stop: forcibly stops the instance. Forcible stop is equivalent to a physical shutdown, and may cause data loss if instance data has not been written to disks.
- Configure Stop Mode. Valid values:
- Standard Mode: The resources of the instance are retained and continue to be billed after the instance is stopped.
- Economical Mode (Formerly Known as No Fees for Stopped Instances Mode): After the instance is stopped, its computing resources (vCPUs and memory) are released and no longer billed. The cloud disks (including the system disk and data disks), elastic IP addresses (if any), and bandwidth continue to be billed. The public IP address is recycled and the private IP address is retained.
- Click OK.
- Configure Stopped By. Valid values:
- For a pay-as-you-go instance in the classic network: