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

Stopping a subscription instance does not affect the billing of the instance.

Stopping a pay-as-you-go instance may affect the billing of the instance. The impact is determined by the network type of the instance and the No Fees for Stopped Instances (VPC-Connected) feature setting.
  • Pay-as-you-go instances in classic networks do not support the No Fees for Stopped Instances (VPC-Connected) feature. A pay-as-you-go instance in a classic network continues to incur fees while the instance is stopped. 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 while 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 while it 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 while the instance is stopped. However, you are still billed for other resources. For more information, see No Fees for Stopped Instances (VPC-Connected).
Note Stopping an instance disrupts services that run on it. Use caution when performing 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. Stop instances as needed.
    • To stop a single instance, find the instance and in the Actions column, choose More > Instance Status > Stop.
    • To stop multiple instances, select the instances and click Stop in the lower-left corner of the instance list.
  5. In the Stop Instance dialog box that appears, set Stopped By.
    • Stop: Stop the instance by shutting it down properly.
    • Force Stop: Forcibly stop 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 Stopping an instance disrupts services that run on it. Use caution when performing this operation. The process 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. Stop instances as needed.
    • To stop a single instance, find the instance and in the Actions column, choose More > Instance Status > Stop.
    • To stop multiple instances, select the instances and click Stop in the lower-left corner of the instance list.
  5. Complete required actions 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: Stop the instance by shutting it down properly.
        • Force Stop: Forcibly stop 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 Information icon next to No Charges After Instance Is Stopped, and read the displayed message.
      2. Click OK.
      3. Set Stopped By and Stop Mode.
        • Stop: Stop the instance by shutting it down properly.
        • Force Stop: Forcibly stop the instance. Forcible stop is equivalent to a physical shutdown, and may cause data loss if instance data has not been written to disks.
        Note If you set Stop Mode to No Charges After Instance Is Stopped, No Fees for Stopped Instances (VPC-Connected) will be displayed in the Stop Mode column on the Instances page after the instance is stopped. If you set Stop Mode to Retain Instance and Continue Charging After Instance Is Stopped, Keep Instances and Continue Billing will be displayed in the Stop Mode column.
      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.

Result

The instance will be in the Stopped state after it is stopped.