Overview

The ECS introduces the No fees for stopped instances (VPC-Connected) feature. If you enable this feature, you do not have to pay for a VPC-Connected Pay-As-You-Go instance when it enters the Stopped status after you stop it in the ECS console or when you use the StopInstance interface or Alibaba Cloud CLI.

Applicable resources

The No fees for stopped instances (VPC-Connected) feature is only applicable to VPC-Connected Pay-As-You-Go instances.

This No fees for stopped instances (VPC-Connected) feature is not applicable to the following ECS resources:

  • All instances with local disks, including but not limited to d1ne, d1, i2, i1, gn5, and ga1 instances.

  • Cloud disks attached to the instances (including system disks and data disks), Internet bandwidth, elastic IP (EIP) addresses, and images. After the No fees for stopped instances (VPC-Connected) feature is enabled, billing of these resources continues when the instance is stopped. For more information about billing, see Pay-As-You-Go, Cloud disk pricing, Billing of network bandwidth, Bandwidth pricing, and EIP pricing.

  • New VPC-Connected Pay-As-You-Go instances that are in the Stopped status after they are created, either by using the ECS console or the CreateInstance interface, and before entering the Running status.

  • Instances that are stopped because of overdue payment. In this case, the billing also stops. The computing resources and public IP address will be released too. You can reactivate your instance and its related resources only after the overdue payment is cleared. Billing of all resources resumes after your instance is successfully reactivated.

  • Pay-As-You-Go instances in classic networks. After such an instance enters the Stopped status, Alibaba Cloud still bills the instance and its related resources. The public and private IP addresses of the instance remain unchanged after the instance is started.

Influences of the feature

The No fees for stopped instances (VPC-Connected) feature has the following influences on your instance when the feature is enabled and the instance is stopped:

  • The CPU and RAM will be released, so you may fail to start your instance next time. If it happens, try again or start your instance after some time.

  • If the instance has been assigned a public IP address, the address is released. After you start your instance in the ECS console or by using the StartInstance interface, your instance is assigned a new public IP address. However, its private IP address remains unchanged.

  • When a t5 instance is stopped, the existing CPU credits are valid but credit accumulation stops. When it starts, CPU credits continue to accumulate.

When you perform the following actions, you must stop your instance and start it when you have performed the following actions:

Along with the preceding actions, perform any one of the following actions to make sure that your instance starts successfully.
  • Log on to the ECS console to disable the No fees for stopped instances (VPC-Connected) feature. For more information about the procedure, see Disable the feature.

  • If you are using APIs or Alibaba Cloud CLI, set StoppedMode = KeepCharging in the StopInstance interface.

Enable the feature

You must manually enable the No fees for stopped instances (VPC-Connected) feature. Once the feature is enabled, it applies to the VPC-Connected Pay-As-You-Go instances in all the regions under your account. When the feature is enabled, you can choose Keep Instance with Fees or not when you stop a VPC-Connected Pay-As-You-Go instance.

If you already have one or more VPC-Connected Pay-As-You-Go instances in use, the feature is not automatically enabled for the ECS instances under your account so that your systems and applications are not affected accidentally. After you fully understand and confirm that the feature does not result in uncontrollable impact on your systems or applications, you can log on to the ECS console to enable the feature.

To enable the feature, follow these steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, click Overview.
  3. In the upper-right corner of the Overview page, click Settings.
  4. Toggle Enable "No Fees for Stopped Instances" for VPC-Connected Instances in All Regions, read the note in the dialog box, and then click No Fees for stopped instances (VPC-Connected).
  5. Click OK.

After the feature is enabled, you can disable it as needed. For more information, see Disable the feature.

Disable the feature

You can disable the No fees for stopped instances (VPC-Connected) feature as needed. This operation takes effect for the VPC-Connected Pay-As-You-Go instances in all the regions under your account. Proceed with caution.

After the feature is disabled:

  • The VPC-Connected Pay-As-You-Go instances in all the regions under your account are still billed even after they are stopped.

  • An instance currently in the Stopped status is not billed. After it is started,

    • A new public IP address is assigned if it had one before it was stopped.
    • The EIP address remains unchanged if it is not unbound before the instance was stopped.
  • When your instance enters the Stopped status after the feature is disabled,

    • The instance is still billed.
    • If it has been assigned a public IP address, the address is retained and remains unchanged.

To disable the feature, follow these steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, click Overview.
  3. In the upper-right corner of the Overview page, click Settings.
  4. Disable Enable "No Fees for Stopped Instances" for VPC-Connected Instances in All Regions, read the note in the dialog box, and then click I Agree.
  5. Click OK.