Updated on 2024-07-18 GMT+08:00

Auto-renewing a DB Instance

If a yearly/monthly DB instance is about to expire but you want to continue using it, you need to renew the DB instance subscription within a specified period, or resources, such as vCPUs and memory, will be automatically released, and data will be lost and cannot be restored.

If a DB instance is auto-renewed before it expires, resources will be retained and you can continue using the instance. For details about DB instance statuses after they have expired and the associated impacts, see Impact of Expiration.

Figure 1 DB instance lifecycle

Auto-renewal Rules

Auto-renewal can prevent DB instances from being automatically deleted if you forget to manually renew them. 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.
    • Yearly subscriptions renew each year.
  • You can enable auto-renewal any time before a DB instance expires. By default, the system will make the first attempt to charge your account for the renewal at 03:00 seven days before the expiry date. If this attempt fails, it will make another attempt at 03:00 every day until the subscription is renewed or expires.
  • 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.

Constraints

Only yearly/monthly DB instance subscriptions can be renewed. If you use a pay-per-use instance, just ensure that your account has a valid payment method configured or a top-up account with a sufficient balance.

Enabling Auto-Renewal During Purchase

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

Figure 2 Enabling auto-renewal

Enabling Auto-Renewal on the Renewals Page

  1. Log in to the management console.
  2. Hover over Billing & Costs in the upper part of the console and choose Renewal from the drop-down list.
  3. Set the search criteria.

    • You can view the DB instances auto-renewal has been enabled for on the Auto Renewals page.
    • You can enable auto-renewal for DB instances on the Manual Renewals, Pay-per-Use After Expiration, and Renewals Canceled pages.
    Figure 3 Renewals

  4. Enable auto-renewal for yearly/monthly DB instances.

    • Enabling auto-renewal for a single instance: Select the instance for which you want to enable auto-renewal and click Enable Auto-Renew in the Operation column.
      Figure 4 Enabling auto-renewal for a single instance
    • Enabling auto-renewal for multiple instances at a time: Select the instances for which you want to enable auto-renewal and click Enable Auto-Renew above the list.
      Figure 5 Enabling auto-renewal for multiple instances

  5. Select a renewal period, specify the auto-renewal times, and click Pay.

    Figure 6 Enabling auto-renew