Upgrade or downgrade the vCPU and memory of a subscription instance to match your workload.
Prerequisites
The instance family supports instance type changes. See Instance type change limitations and pre-checks.
The instance is in the Running or Stopped state.
The target instance type is in stock in the current zone. Check availability at Instance Types Available for Each Region or call the DescribeResourcesModification operation.
Note- Important
If you want to migrate an ECS instance to another region, consider the following methods:
Use the server migration feature to migrate an ECS instance from one region to another. For more information, see Migrate ECS instances across or within accounts.
Create a custom image from the current instance, copy the custom image to the destination region, and then use the image to create a new instance. For more information, see Create a custom image from an instance, Copy a custom image, and Create an instance from a custom image or a shared image.
Limitations
You must specify a target instance type that includes both vCPU and memory. You cannot change only one.
Instance type changes apply only to the current billing cycle. Temporary changes are not supported.
You cannot change the instance type while another configuration change is in progress, such as an instance type change, bandwidth modification, or temporary bandwidth upgrade.
If a renewal to a lower-tier type is scheduled for the next billing cycle, you cannot upgrade the instance until that cycle begins.
You cannot downgrade a subscription instance while a renewal to a lower-tier type is pending. Wait for the renewal to complete first.
Downgrades are subject to a monthly quota based on historical consumption. The quota resets on the first day of each month. The specific limit is shown on the page.
You cannot downgrade the instance type and upgrade attached disks in the same operation. For example, to upgrade an ultra disk to an ESSD and downgrade the instance, upgrade the disk first, then downgrade the instance.
Billing
Upgrading the instance type requires an upgrade fee.
NoteRemaining duration of new order: The time from the upgrade request submission to the service expiration of the new order.
Remaining duration of original order: The time from the upgrade request submission to the service expiration of the original order.
Discount: Automatically calculated based on the upgraded configuration and remaining service duration.
Downgrading may result in a refund. The refund equals the difference between the new configuration price and the remaining purchase price before the downgrade. See Rules for unsubscribing from resources.
If the instance was purchased through a long-term promotion, changing the configuration may void the discounted renewal price.
Procedure
Changing the instance type requires a restart. Perform this operation during off-peak hours to minimize business impact.
Go to ECS console - Instances.
In the upper-left corner of the page, select a region and resource group.
Click the instance ID to open its details page. In the upper-right corner, choose All Actions > Upgrade/Downgrade > Change Instance Type.
NoteTo change instance types in bulk, perform batch operations on the Instance page. Select multiple instances on the Instance page and choose at the bottom of the page.
Select a target instance type.
NoteAvailable instance types are displayed on the page.
Change the instance type.
Upgrade the instance type
Steps vary based on the instance state.
The instance is Stopped:
Confirm the estimated cost, select Read and select ECS Terms of Service, and click Confirm Change and Pay.
Read and select ECS Terms of Service.
Complete the payment.
Start the instance to apply the change.
After payment, the console displays the new instance type, but the change does not take effect until you start the instance.
The instance is Running:
Set the restart time.
If you select Scheduled Instance Restart Time for Instance Restart Mode, you can view or modify the scheduled time under .
WarningRestarting an instance stops it, which may interrupt services. Perform this operation during off-peak hours.
Some instance types display "no timed execution. cannot scheduled downgrade", meaning the instance does not support scheduled restarts and must be stopped before its type can be changed.
Confirm the changes, select Read and select ECS Terms of Service, and click Confirm Change and Pay or Confirm Change and Restart Instances.
Restart the instance.
After you click Confirm Change and Pay and complete payment, the console displays the new instance type, but the change does not take effect until you restart the instance.
Downgrade the instance type
Steps vary based on the instance state.
The instance is Stopped: Confirm the changes, select Read and select ECS Terms of Service, and click Confirm Change.
The instance is Running:
Confirm the changes, select Read and select ECS Terms of Service, and click Stop Instances and Proceed.
In the Stop Instance dialog box, select a stop method under Stopped By and click Confirm.
Start the instance to apply the change.
See Start an instance.
References
DescribeResourcesModification: Queries available resources in a zone for instance type or system disk changes.
ModifyInstanceSpec: Changes the instance type and public bandwidth of a pay-as-you-go instance.
DescribeInstanceModificationPrice: Queries the price of upgrading a subscription instance to a new instance type, including new data disks.