Updated on 2024-01-17 GMT+08:00

Performing a Primary/Standby Switchover

If the source database in the production center is faulty, manually switch the DR instance to the read/write state. Then, data is written to the DR instance and synchronized to the source database.

Procedure

  1. Find that the source database in the production center is faulty. For example, the source database cannot be connected, the source database execution is slow, or the CPU usage is high.
  2. Receive an SMN email notification
  3. Check the delay of the DR task.

    Figure 1 Delay exception

  4. Check that the services of the source database have been stopped. For details, see How Do I Ensure that All Services on the Database Are Stopped?
  5. Select the task, click the Batch Operation drop-down box in the upper left corner and select Primary/Standby Switchover.

    Figure 2 Primary/standby switchover
    Figure 3 Switchover completed

  6. Change the database IP address on your application and use it to connect to the database. Then data is properly read from and written to the database.