This topic describes how to stop an instance in the ECS console and introduces operations related to the No Fees for Stopped Instances (VPC-Connected) feature.

Prerequisites

The instance that you want to stop is in the Running state.

Background information

If you stop a subscription instance, the billing of the instance is not affected.

If you stop a pay-as-you-go instance, the billing of the instance may be affected based on the network type of the instance and the No Fees for Stopped Instances (VPC-Connected) feature setting.
  • Pay-as-you-go instances in the classic network do not support the No Fees for Stopped Instances (VPC-Connected) feature. A pay-as-you-go instance in the classic network continues to incur fees after the instance is stopped. The billing stops only when the instance is released. For more information, see Release an instance.
  • Pay-as-you-go instances in VPCs support the No Fees for Stopped Instances (VPC-Connected) feature.
    • If the No Fees for Stopped Instances (VPC-Connected) feature is not enabled, the billing of a pay-as-you-go instance continues after the instance is stopped.
    • If the No Fees for Stopped Instances (VPC-Connected) feature is enabled, you can use the Stop Mode parameter to configure whether to retain and bill an instance after the instance is stopped. If you set Stop Mode to No Charges After Instance Is Stopped in the Stop Instance dialog box, billing of the vCPUs, memory, and public IP address stops after the instance is stopped. However, you are still charged for other resources. For more information, see No Fees for Stopped Instances (VPC-Connected).
Note Services that are running on an instance will be interrupted if you stop the instance. Exercise caution when you perform this operation.

Stop a subscription instance

To stop a subscription instance, perform the following steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. Use a suitable method to stop instances.
    • To stop a single instance, find the instance and choose More > Instance Status > Stop in the Actions column.
    • To stop multiple instances at a time, select the instances and click Stop in the lower part of the Instances page.
  5. In the Stop Instance dialog box that appears, set Stopped By.
    • 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.
  6. Click OK.

Stop a pay-as-you-go instance

To stop a pay-as-you-go instance, perform the following steps:
Note Services that are running on an instance will be interrupted if you stop the instance. Exercise caution when you perform this operation. The procedure to stop a preemptible instance is the same as that of a pay-as-you-go instance. For more information, see Stop a preemptible instance.
  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. Use a suitable method to stop instances.
    • To stop a single instance, find the instance and choose More > Instance Status > Stop in the Actions column.
    • To stop multiple instances at a time, select the instances and click Stop in the lower part of the Instances page.
  5. Configure required parameters based on the instance network type and the No Fees for Stopped Instances (VPC-Connected) feature setting.
    • If the network type is classic network or if No Fees for Stopped Instances (VPC-Connected) is not enabled:
      1. In the Stop Instance dialog box that appears, set Stopped By.
        • 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.
      2. Click OK.
    • If No Fees for Stopped Instances (VPC-Connected) is enabled:
      1. Move the pointer over the icon next to No Charges After Instance Is Stopped and read description of the No Fees for Stopped Instances (VPC-Connected) feature.
      2. In the Stop Instance dialog box that appears, set Stopped By.
        • 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.
      3. Set Stop Mode.
        • Retain Instance and Continue Charging After Instance Is Stopped: After the instance is stopped, resources of the instance are retained and continue to be charged.
        • No Charges After Instance Is Stopped: After the instance is stopped, computing resources such as vCPUs and memory of the instance are not retained or charged. The cloud disks such as system and data disks, Elastic IP address, and bandwidth continue to be charged. The public IP address is reclaimed and the private IP address is retained.
      4. Click OK.
      Note For information about how to disable No Fees for Stopped Instances (VPC-Connected), see Disable the No Fees for Stopped Instances (VPC-Connected) feature.
      Stop an instance

Result

The instance enters the Stopped state after it is stopped.