Manually Switching Between Primary and Standby DB Instances
Scenarios
If you choose to create primary/standby instances, RDS will create a primary instance and a synchronous standby instance in the same region. Data is synchronized from the primary instance to the standby instance in real time. You can only access the primary instance only. The standby instance serves as a backup. You can perform a primary/standby switchover when needed. After the switchover, the original primary instance becomes the standby instance, implementing rack-level DR.
Constraints
You can perform a switchover only when the following conditions are met:
- The instance is running properly.
- The primary/standby replication is normal.
- The replication delay is less than 5 minutes, and the data on the primary and standby instances is consistent.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project. - Click
in the upper left corner of the page and choose Database > Relational Database Service. - On the Instances page, click the target primary/standby DB instance.
- 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 a brief interruption of several seconds or minutes (depending on the replication delay). If transaction logs are generated at a speed higher than 30 MB/s, services will probably be interrupted for several minutes. To prevent traffic congestion, perform a switchover during off-peak hours.
- In the displayed dialog box, click OK.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot