When the RDS instance is created successfully, the system automatically creates a free slave instance for it in the same region as that of the master instance. But the slave instance is located in a different zone (random assignment) from that of the master instance.
The data in the master instance synchronizes to the slave instance in real time. You can only access the master instance. The slave instance exists only as a backup. However, when the rack where the master instance is located encounters an error, the master and slave instances can be switched. After the handover, the original master instance becomes a backup instance, and the rack-level disaster tolerance can be realized.
This article describes how to switch the master/slave instance.
Currently this operation is not applicable to MySQL 5.7 and SQL Server 2012 instances. Since they are basic single node edition instances, and they do not have slave node.
Switching the master/slave instance may result in transient disconnection. Make sure that your application has a reconnection policy.
Log on to the
Select the region where the target instance is located.
Click the ID of the target instance to visit the Basic Information page.
In the left-side navigation pane, select Instance Availability.
In the Availability Information area, click Switch Master/Slave Instance, as shown in the following figure.
Click Confirm to switch the instance.