All Products
Search
Document Center

Elastic Compute Service:Stop an instance

Last Updated:Oct 25, 2024

You can stop Elastic Compute Service (ECS) instances in standard mode or economical mode.

Important

If you stop an instance, services that are running on the instance are interrupted. Proceed with caution when you perform this operation.

Usage Notes

  • Preemptible instances: After you stop a preemptible instance, you cannot restart the instance if resources are insufficient or your bid price is lower than the market price. In this case, the preemptible instance is reclaimed. For more information, see What are preemptible instances?

  • Subscription instances: Stopping a subscription instance does not change the expiration time of the instance and continue to be billed.

  • Pay-as-you-go instances: Billing continues after you stop a pay-as-you-go instance, and stops only after the instance is released. For more information, see Release an instance.

Stop an instance by using the ECS console

  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 the region and resource group to which the resource belongs. 地域

  4. Use one of the following methods to stop one or more instances:

    • To stop a single instance, find the instance and choose icon1 > Instance Status > Stop in the Actions column.

      2024-10-25_17-05-26.png

    • To stop multiple instances at a time, select the instances and choose More > Instance Status > Stop in the lower part of the instance list page.

      2024-10-25_17-11-03.png

  5. Configure the Stopped By or Stop Mode parameter and click OK.

    Parameter

    Description

    Stopped By

    • Stop: stops the instance by by properly shutting down the instance.

    • Force Stop: forcefully stops the instance. A force stop is equivalent to a physical shutdown and may cause data loss if instance data was not written to disks.

    Stop Mode

    Important

    Only pay-as-you-go instances that reside in virtual private clouds (VPCs) support this parameter.

    • Standard Mode: The resources of the instance are retained and continue to be billed after you stop the instance.

    • Economical Mode: After you stop the instance, the following events occur:

      • Billing for the following resources of the instance stops: computing resources (vCPUs and memory), image, and public bandwidth of the static public IP address (if any) that uses the pay-by-bandwidth metering method.

      • Billing for the following resources of the instance continues: system disk, data disks, and public bandwidth of the elastic IP address (if any) that uses the pay-by-bandwidth metering method.

      • The vCPUs, memory, and static public IP address of the instance are recycled. The private IP address of the instance is retained. When you restart the instance, the restart operation may fail and the static public IP address of the instance may change.

        Important
        • The restart operation may fail. The vCPUs and memory of an instance are recycled when you stop the instance in economical mode. The instance may fail to restart due to insufficient resources or overdue payments. If the instance fails to restart due to insufficient resources, try again later or change the instance type of the instance. If the instance fails to be restarted due to overdue payments, add funds to your account to complete the payments. For more information, see Economical mode and the Prevent and handle overdue payments section of the "Overdue payments" topic.

        • The static public IP address of the instance may change. If an instance uses a static public IP address, the static public IP address is recycled when you stop the instance in economical mode. When you restart the instance, a new static public IP address is assigned to the instance, which may be different from the recycled static public IP address.

    When the instance is stopped, the instance enters the Stopped state.