You can change the billing method of an ApsaraDB for MongoDB instance from pay-as-you-go to subscription.

Prerequisites

  • The billing method of the instance is pay-as-you-go and the instance is in the Running state.
  • The instance type is available for purchase. For more information about unavailable instance types, see Historical instance types.
    Note If you need to change the billing method of an instance with a phased-out instance type from pay-as-you-go to subscription, change the instance type first. For more information, see Overview.
  • The instance must run MongoDB 4.0 or later.
    Note If you want to switch the billing method of an instance that runs MongoDB 4.0 or earlier to subscription, upgrade the database engine version first. For more information, see Upgrade the major version of an ApsaraDB for MongoDB instance and Upgrade the minor version of an ApsaraDB for MongoDB instance.
  • The instance has no unpaid subscription orders.
    Note If you change the billing method of an instance from pay-as-you-go to subscription, the system generates a subscription order. You cannot purchase a new instance or change the billing method to subscription until you pay for this order. You can log on to the Billing Management console and choose Expenses > Orders to pay for the order or cancel it.
  • Your account balance is sufficient.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
  3. In the upper-left corner of the page, select the resource group and region to which the instance belongs.
  4. Find the instance whose billing method you want to change, click More in the Actions column, and then select Switch to Subscription.
  5. On the Switch to Subscription page, set Duration for the instance.
  6. Read and select the MongoDB (Subscription) Terms of Service and click Buy Now.
  7. On the Purchase page, complete the payment.