This topic describes how to change the instance type (vCPUs and memory) of a pay-as-you-go instance.

Prerequisites

The instance for which you want to change the instance type meets the following requirements:
  • The instance is a pay-as-you-go instance, excluding preemptible instances.
  • The instance is in the Stopped (Stopped) state.
    Note
    • Set Stop Mode to Standard Mode when you stop the instance.
    • Service interruptions may occur when you stop instances. We recommend that you stop instances during off-peak hours.
  • The instance family to which the instance belongs supports instance type changes. For more information, see Instance families that support instance type changes.

Limits

  • The number of vCPUs and the memory size of an instance can be changed only by changing the instance type of the instance. These configurations cannot be separately changed.
  • The instance type of an instance can be changed as many times as needed, but you must wait at least 5 minutes between two consecutive changes.

Change the instance type of a single 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. Find the pay-as-you-go instance for which you want to change the instance type and click Change Instance Type in the Actions column.
  5. On the Change Instance Type page, select a new instance type.
  6. Confirm the configuration fees and click Change.
  7. Start the instance.
    The new instance type immediately takes effect after the instance is started.

Change the instance types of multiple instances

  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. Select the pay-as-you-go instances for which you want to change the instance types. In the lower part of the page, choose More > Configuration Change > Change Pay-as-you-go Instance Type.
  5. On the Change Instance Type page, select a new instance type.
    If a selected instance does not have the same instance type as other selected instances or if the instance is located in a different zone from other instances, this instance is filtered out. Operations can be performed only on the instances that meet the filter conditions, as shown in the following figure. Change the instance types of multiple instances
  6. Confirm the configuration fees and click Change.
  7. Start the instances.
    The new instance type immediately takes effect after the instances are started.