Updated on 2024-05-21 GMT+08:00

Auto-Renewing a DB Instance

Scenarios

Auto-renewal can prevent DB instances from being automatically deleted if you forget to manually renew them.

If auto-renewal is not enabled when you purchase a yearly/monthly DB instance, you can enable it on the Instances page and then modify it later as needed.

The auto-renewal rules are as follows:

  • The first auto-renewal date is based on when the DB instance expires and the billing cycle.
  • The auto-renewal period of a DB instance depends on the subscription term.
    • Monthly subscriptions renew each month by default.
    • Yearly subscriptions renew each year by default.
  • After auto-renewal is enabled, you can still renew the DB instance manually if you want to. After a manual renewal is complete, auto-renewal is still valid, and the renewal fee will be deducted from your account seven days before the new expiry date.
  • By default, the renewal fee is deducted from your account seven days before the new expiry date. You can change this auto-renewal payment date as required.

For more information about auto-renewal rules, see Auto-Renewal Rules.

Prerequisites

The yearly/monthly DB instance is not expired.

Enabling Auto-Renewal During Purchase

You can enable auto-renewal on the DB instance purchase page, as shown in Figure 1. For details, see Step 1: Buy a DB Instance.

Figure 1 Enabling auto-renewal

Enabling Auto-Renewal on the Instances Page

  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, choose Databases > GaussDB(for MySQL).
  4. On the Instances page, locate the yearly/monthly instance and choose More > Enable Auto-Renewal in the Operation column.
  5. In the displayed dialog box, confirm the DB instance information and click OK.

    Figure 2 Enabling auto-renewal

  6. Configure New Auto-Renew Period and Auto-renewals and click OK.

    • New Auto-Renew Period: Select the period to be renewed.
      • Monthly subscriptions renew each month by default.
      • Yearly subscriptions renew each year by default.
    • Auto-renewals: Select Preset Auto-renewals and then select Unlimited or Custom.
      • Unlimited: By default, the subscription renews every time before it expires.
      • Custom: Enter an integer from 1 to 1,000. The auto-renewal is disabled after the DB instance is automatically renewed for the specified number of times.
    • After auto-renewal is enabled, you can modify it by referring to Configuring Auto-Renewal.

  7. In the Billing Information area on the Basic Information page of the instance, check whether Upon Expiration is Automatic renewal.

    Figure 3 Upon expiration

Configuring Auto-Renewal

  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, choose Databases > GaussDB(for MySQL).
  4. On the Instances page, locate the yearly/monthly instance and choose More > Configure Auto-Renewal in the Operation column.
  5. In the displayed dialog box, confirm the DB instance information and click OK.

    Figure 4 Configuring auto-renewal

  6. Configure Renewal Option, Renewal Duration, New Auto-Renew Period, and Auto-renewals, and click OK.

    • If you select Automatic for Renewal Option, you need to configure New Auto-Renew Period and Auto-renewals.
    • If you select Manual for Renewal Option, auto-renewal will be disabled and resources will not be renewed automatically before they expire.

  7. In the Billing Information area on the Basic Information page of the instance, view the Upon Expiration field.

    • If you select Automatic for Renewal Option, the field is Automatic renewal.
    • If you select Manual for Renewal Option, the field is Enter grace period.