This topic describes methods for changing the specifications of an ECS instance. After an instance is created, you can change its type (the number of vCPUs and memory size), billing method for data disks, and Internet bandwidth.

Upgrade or downgrade an instance

Upgrading or downgrading an instance will change the number of vCPUs and memory size at the same time. The number of vCPUs and memory size must be changed together, and neither of them can be changed separately. For more information about instance types, see Instance families. Before changing instance specifications, check Instance families that support instance type changes and confirm the target instance type supported by a specific instance family.

The following table summarizes the change methods best suited for the billing method applied to your instance.

Billing method Upgrade method Downgrade method
Subscription

Upgrade configurations of Subscription instances

The new specifications take effect after you restart the instance in the ECS console or by calling the RebootInstance operation.

  • Downgrade configurations of Subscription instances(Whether this feature is supported depends on your ECS resource usage.)

    The new specifications take effect after you restart the instance in the ECS console or by calling the RebootInstance operation.

  • Downgrade an instance during renewal

    The new specifications take effect after you restart the instance in the ECS console or by calling the RebootInstance operation within the first seven days of the new billing cycle.

Pay-as-you-go Change configurations of Pay-As-You-Go instances

The new specifications take effect after you start the instance.

Change configurations of Pay-As-You-Go instances

The new specifications take effect after you start the instance.

Change the billing methods of data disks

Only pay-as-you-go data disks can be attached to pay-as-you-go instances. Therefore, you can only change the billing methods of data disks for subscription instances.

Billing method change Operation Effective time
Pay-as-you-go to subscription Upgrade configurations of Subscription instances Immediately
Subscription to pay-as-you-go Change the billing method of a subscription disk Immediately
Downgrade an instance during renewal From the new billing cycle

Change the billing method for network usage

You can change the billing method for network usage. The methods depend on the billing method of the instance. The following table describes these methods.
Note The operations to change billing methods only apply to classic network-type ECS instances and VPC-type ECS instances with no associated EIPs.
Instance billing method Change the bandwidth billing method Method
Subscription From Pay-By-Traffic to Pay-By-Bandwidth Upgrade configurations of Subscription instances, the new billing method takes effect immediately.
From Pay-By-Bandwidth to Pay-By-Traffic
Pay-as-you-go From Pay-By-Traffic to Pay-By-Bandwidth Change Internet bandwidth, the new billing method takes effect immediately.
From Pay-By-Bandwidth to Pay-By-Traffic Change Internet bandwidth, the new billing method takes effect immediately.

Adjust Internet bandwidth

You can adjust the Internet bandwidth of an instance. The methods depend on your business needs and the billing method of the instance. The following table lists the methods.

Reducing the Internet bandwidth of an instance to 0 Mbit/s has the following impacts on the public IP address of the instance:
  • For a VPC-type ECS instance, its public IP address is released immediately.
  • A classic network-type instance cannot access the Internet but its public IP address is retained.

You can set the Internet bandwidth to a non-zero value when creating an instance. The system will allocate a public IP address to your instance. If you choose not to assign Internet bandwidth (that is, keep the Internet bandwidth at 0 Mbit/s) when creating an instance, you can assign a public IP address to the instance by using the upgrade or downgrade feature after you create the instance.

Billing method Upgrade basic Internet bandwidth Change method
Subscription Yes
  • Upgrade specifications of subscription instances

    This method is suitable for classic network-type ECS instances and VPC-type ECS instances with no associated EIPs. The new bandwidth takes effect immediately after you change the bandwidth.

  • Downgrade an instance during renewal
    This method is suitable for classic network-type ECS instances and VPC-type ECS instances with no associated EIPs. You can adjust the Internet bandwidth when you renew the instance. The new bandwidth takes effect when the next billing cycle begins.
    • If the pay-by-bandwidth billing method is used, you can only reduce the Internet bandwidth.
    • If the pay-by-traffic billing method is used, you can change the peak Internet bandwidth.
Pay-as-you-go Yes Change the EIP bandwidth

This method is suitable for VPC-type ECS instances with no associated EIPs. The new bandwidth takes effect immediately after you change the bandwidth.

Change the Internet bandwidth of a pay-as-you-go instance

This method is suitable for classic network-type ECS instances and VPC-type ECS instances with no associated EIPs. The new bandwidth takes effect immediately after you change the bandwidth.