Help Center/ Relational Database Service/ User Guide/ Working with RDS for MariaDB/ Instance Modifications/ Manually Switching Between Primary and Standby DB Instances
Updated on 2023-12-28 GMT+08:00

Manually Switching Between Primary and Standby DB Instances

Scenarios

If you choose to create primary/standby DB instances, RDS will create a primary DB instance and a synchronous standby DB instance in the same region. You can access the primary DB instance only. The standby instance serves as a backup. You can manually promote the standby DB instance to the new primary instance for failover support.

Constraints

  • The DB instance is running properly.
  • The replication between the primary and standby instances is normal.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the target primary/standby DB instance.
  4. In the DB Information area on the displayed Basic Information page, click Switch next to the DB Instance Type field.

    A primary/standby switchover may cause service interruptions for several seconds or minutes (depending on the replication delay). To prevent traffic congestion, you are advised to perform a switchover during off-peak hours.

  5. In the displayed dialog box, click OK.
  6. After the switchover is successful, check the status of the DB instance on the Instances page.

    • During the switchover, the DB instance status is Switchover in progress.
    • In the upper right corner of the DB instance list, click to refresh the list. After the switchover is successful, the DB instance status will become Available.