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
Changing the instance type requires a restart, which causes service interruptions. Perform this operation during off-peak hours.
Go to ECS console - Instances.
In the upper-left corner of the page, select a region and resource group.
-
Click the instance ID to go to the details page. In the upper-right corner, choose All Actions > Upgrade/Downgrade > Change Instance Type.
NoteTo change instance types in bulk, select multiple instances on the Instance page, then choose . See Batch operations.
-
Select a different instance type.
NoteAvailable instance types appear in the New Instance Type drop-down list.
-
Proceed based on the instance status:
-
If the instance is Stopped, confirm the estimated cost and click Confirm Change.

-
If the instance is Running:
-
Confirm the estimated cost. Click Stop Instances and Proceed.

-
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.
-
-
-
-
After the instance type change completes, click Start Instances and Return. In the Start Instance dialog box, click Confirm.
