Updated on 2024-04-11 GMT+08:00

Rebooting DB Instances or Read Replicas

Scenarios

You may need to reboot a DB instance during maintenance. For example, after you modify some parameters, a reboot is required for the modifications to take effect. You can reboot a primary DB instance or a read replica on the management console. You can reboot a single DB instance or multiple DB instances at a time.

Constraints

  • If the database service status is abnormal, you can forcibly reboot the DB instance, but this will interrupt uncommitted transactions.
  • Rebooting DB instances will cause service interruptions. During the reboot process, the DB instance status is Rebooting.
  • Rebooting DB instances will cause instance unavailability and clear cached memory. To prevent traffic congestion during peak hours, you are advised to reboot DB instances during off-peak hours.

Rebooting a DB Instance or Read Replica

  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, or click and then locate the target read replica. Choose More > Reboot in the Operation column.

    Alternatively, click the target DB instance on the Instances page to go to the Basic Information page. In the upper right corner, click Reboot.

    For primary/standby DB instances, if you reboot the primary DB instance, the standby DB instance is also rebooted automatically.

  5. In the displayed dialog box, select a scheduled time and click OK.

    • Immediate: RDS reboots the instance immediately.
    • During maintenance window: RDS will reboot the instance during the maintenance window you configured. To use this function, contact customer service to apply for required permissions.

      If you select During maintenance window, you can further click Modify under the option to change the maintenance window to a preferred time.

      Figure 1 Rebooting a DB instance

  6. If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication improves the security of your account and cloud product. For details about how to enable operation protection, see Identity and Access Management User Guide.

  7. Refresh the DB instance list and view the status of the DB instance. If its status is Available, it has rebooted successfully.

Rebooting DB Instances or Read Replicas 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 > Relational Database Service.
  4. On the Instances page, select one or more DB instances or read replicas (maximum: 50) to be rebooted and choose More > Reboot above the DB instance list.
  5. In the displayed dialog box, click Yes.
  6. If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication improves the security of your account and cloud product. For details about how to enable operation protection, see Identity and Access Management User Guide.

  7. Refresh the DB instance list and view the statuses of the DB instances. If their statuses are Available, they have rebooted successfully.