Switch an ApsaraDB for MongoDB instance from pay-as-you-go to subscription to reduce costs for long-running, stable workloads. The change takes effect immediately after payment, and no downtime occurs during the process.
Subscription instances cannot be manually released. They are released only after they expire and are not renewed.
Prerequisites
Before you change the billing method, ensure that the following requirements are met:
Basic requirements:
The instance is in the Running state and uses the pay-as-you-go billing method.
The instance has no unpaid orders for changing the billing method to subscription. An unpaid order blocks other billing operations for the instance. To pay for or cancel a pending order, go to the Expenses and Costs console, and then click Orders.
Your Alibaba Cloud account has a sufficient balance to pay for the subscription.
Other requirements:
The instance must not use a retired (historical) specification. If it does, you must change the instance configuration first. For more information, see Retired specifications.
The instance must run MongoDB 4.0 or later. If it runs an earlier version, you must upgrade the major version to 4.0 or later.
You cannot change the billing method for local-disk instances that run MongoDB 4.0 or 4.2 in the US (Silicon Valley) and US (Virginia) regions. For more information, see Discontinuation of MongoDB 4.0/4.2 local-disk instances in US regions.
Procedure
Log on to the ApsaraDB for MongoDB console.
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
In the upper-left corner of the page, select the resource group and region to which the instance belongs.
Find the target instance and click More > Change to Subscription in the Actions column.
On the Switch to Subscription Billing page, specify the Duration.
Read and select the terms of service, and then click Buy now.
On the purchase page, follow the on-screen instructions to complete the payment.