Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
5.0 KiB
How Does a Cloud Database Perform a Primary/Standby Switchover?
RDS provides the high availability. Select the primary/standby mode.
Failover
Also called an unplanned handover. If the primary DB instance fails, the system will automatically switch to the standby DB instance within 5 minutes. No human intervention is required. The connection IP address remains unchanged. DB instances cannot be accessed during the failover. You need to configure automatic reconnections between applications and RDS DB instances to ensure near-continuous availability.
Switchover (Manual)
Also called a planned handover. When a DB instance is running properly, you can manually perform a primary/standby switchover if it is needed.
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
- On the Instances page, click the target DB instance.
- In the DB Information area on the displayed Basic Information page, click Switch in the DB Instance Type field.
Alternatively, click
in the DB instance topology on the Basic Information page to manually trigger a primary/standby switchover.
- In the Switch Primary/Standby Instances dialog box, click Yes to switch between the primary and standby DB instances.
If the replication status is Available and the replication delay is greater than 300s, the primary/standby switchover task cannot be delivered.
- After a switchover is successful, you can view and manage the DB instance on the Instances page.