Updated on 2023-09-12 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 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. Change the EIP to be billed by bandwidth on a pay-per-use basis.
  2. Change the EIP to be billed on a yearly/monthly basis.

For details, see Changing EIP Billing Mode.

Constraints

Pay-per-use DB instances in any of the following statuses cannot be changed to yearly/monthly: frozen, creation failed, changing instance class, and scaling up.

Changing the Billing Mode from Pay-per-Use to Yearly/Monthly

  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 > Relational Database Service.
  4. On the Instances page, locate the target DB instance and choose More > Change to Yearly/Monthly in the Operation column.

    Alternatively, click the DB instance name to go to the Basic Information page. In the Billing Information area, click Change on the right of Billing Mode.

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

  5. Select the renewal duration, in months. The minimum duration is one month.

    • If you do not need to modify your settings, click Pay to go to the payment page.
    • If you are not sure about the settings, the system will reserve your order. You can choose Billing & Costs > Unpaid Orders in the upper right corner and pay or cancel the order. The instance status is Changing to Yearly/Monthly. Payment incomplete. Pay Now.

  6. Select a payment method and click Confirm.
  7. View the result on the Instances page.

    In the upper right corner of the instance list, click to refresh the list. The instance status will become Available and the billing mode will become yearly/monthly after the change is complete.