All Products
Search
Document Center

Elastic Compute Service:Change the instance type of a pay-as-you-go ECS instance

Last Updated:May 15, 2026

Adjust the vCPUs and memory of a pay-as-you-go ECS instance by changing its instance type.

Prerequisites

The instance meets the following requirements:

  • The instance is a pay-as-you-go instance, not a spot instance.

  • The instance is in the Running (Running) or Stopped (Stopped) state.

    Important
    • When you stop a pay-as-you-go instance, set Stop Mode to Standard Mode. If you select Economical Mode, computing resources (vCPUs and memory) are reclaimed, and the instance may fail to restart due to insufficient resources.

    • Stopping instances may cause service interruptions. Stop instances during off-peak hours.

  • The instance family supports instance type changes. See Instance type change limitations and pre-checks.

Limitations

  • vCPUs and memory can only be changed together by changing the instance type. You cannot change them separately.

  • You cannot change the instance type while another configuration change, such as an instance type or bandwidth change, is in progress.

  • Changing the instance type affects only vCPUs and memory. The operating system, application code, and data remain unchanged.

Billing

After you change the instance type, the instance is billed based on the new instance type. See Pay-as-you-go.

Procedure

Warning

Changing the instance type requires a restart, which causes service interruptions. Perform this operation during off-peak hours.

  1. Go to ECS console - Instances.

  2. In the upper-left corner of the page, select a region and resource group.地域

  3. Click the instance ID to go to the details page. In the upper-right corner, choose All Actions > Upgrade/Downgrade > Change Instance Type.

    Note

    To change instance types in bulk, select multiple instances on the Instance page, then choose More > Upgrade/Downgrade > Change Instance Type. See Batch operations.

  4. Select a different instance type.

    Note

    Available instance types appear in the New Instance Type drop-down list.

  5. Proceed based on the instance status:

    • If the instance is Stopped, confirm the estimated cost and click Confirm Change.image

    • If the instance is Running:

      1. Confirm the estimated cost. Click Stop Instances and Proceed.

        image

      2. In the Stop Instance dialog box, set Stopped By and Stop Mode, then click Confirm.

        Important
        • Set Stop Mode to Standard Mode. If you select Economical Mode (Formerly Known as No Fees for Stopped Instances), computing resources (vCPUs and memory) are reclaimed, and the instance may fail to restart due to insufficient resources.

        • Stopping instances may cause service interruptions. Stop instances during off-peak hours.

  6. After the instance type change completes, click Start Instances and Return. In the Start Instance dialog box, click Confirm.

    image