Updated on 2024-03-20 GMT+08:00

Pay-per-Use to Yearly/Monthly

If you have a pay-per-use DB instance that you expect to use for a long time, you can change it to yearly/monthly billing to reduce costs. Doing so will create an order. After you pay for the order, yearly/monthly billing will be applied immediately.

Suppose a user bought a pay-per-use DB instance at 15:29:16 on April 18, 2023 and changed it to yearly/monthly billing at 16:30:30 on the same day. After the user paid for the order, yearly/monthly billing was applied immediately. On the Billing Center > Billing page, three line items were generated, one for each of the hours the DB instance was used on a pay-per-use basis, and one for the yearly/monthly subscription:

  • Pay-per-use expenditures for 15:29:16 to 16:00:00 on April 18, 2023
  • Pay-per-use expenditures for 16:00:00 to 16:30:30 on April 18, 2023
  • A single, yearly/monthly expenditure generated on April 18, 2023, 16:30:30

Constraints

Resources such as the EIP that is used by a DB instance may not support the change with this DB instance. For details about their billing mode change rules and handling methods, see Table 1.

Table 1 EIP billing mode change rules

Resource

Billing Mode

Billed By

Bandwidth Type

Change to Yearly/Monthly Billing with the DB instance

Handling Measure

EIP

Pay-per-use

Bandwidth

Dedicated

Not supported

Change the EIP to yearly/monthly billing on the EIP console.

For details, see Changing EIP Billing Mode.

EIP

Pay-per-use

Traffic

Dedicated

Not supported

An EIP that is billed by traffic on a pay-per-use basis cannot be directly changed to be billed on a yearly/monthly basis. To change this:
  1. First, change the EIP billed by traffic on a pay-per-use basis to be billed by bandwidth on a pay-per-use basis.
  2. Then, change the EIP billed by bandwidth on a pay-per-use basis to be billed on a yearly/monthly basis.

For details, see Changing EIP Billing Mode.

Precautions

Only when the status of a pay-per-use instance is Available, its billing mode can be changed to yearly/monthly.

Changing the Billing Mode of a Single Instance

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, locate the target DB instance and in the Operation column, click Change to Yearly/Monthly.
  5. On the displayed page, select the renewal duration in month. The minimum duration is one month. Figure 1 shows how to change a pay-per-use cluster instance to yearly/monthly.

    Figure 1 Changing from pay-per-use to yearly/monthly

    Confirm the settings and click Pay.

  6. Select a payment method and click Pay.
  7. View the results on the Instances page.

    In the upper right corner of the instance list, click to refresh the list. After the instance billing mode is changed to yearly/monthly, the instance status will change to Available. The billing mode becomes to Yearly/Monthly.

Changing Instance Billing in Batches

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, select the target instances and click Change to Yearly/Monthly above the instance list. In displayed dialog box, click Yes.
  5. On the displayed page, select how many months you wish to renew the instance for. The minimum duration is one month.

    Confirm the settings and click Pay.

  6. Select a payment method and click Pay.
  7. View the results on the Instances page.

    In the upper right corner of the instance list, click to refresh the list. After the instance billing mode is changed to yearly/monthly, the instance status will change to Available. The billing mode becomes to Yearly/Monthly.