Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The graceful switchover is a zero data loss process for role reversal between the primary and standby clusters. At the end of this process, the standby and primary clusters change roles, and the standby cluster becomes the new primary, and the primary cluster becomes the new standby. Even though this process involves a little downtime, but is seamless and does not require any manual intervention.

Note

Dbvisit agentmanager or controlcenter does not manage automatic startup of PostgreSQL cluster after server reboots. The services must be managed either by system startup scripts or can be done manually from the control center or directly from the server itself.

2. Technical Explanation

  1. Database Status

    1. The primary cluster should be “ONLINE“ and the standby cluster should be “HOT STANDBY“/”WARM STANDBY.” 

Drawio
mVer2
zoom1
simple0
zoominComment10
inCommentcustContentId03680108964
pageId3673063630
custContentIdlbox36801089641
diagramDisplayNameUntitled Diagram-1693262547481.drawio
lbox1
contentVer23
revision23
baseUrlhttps://dbvisit.atlassian.net/wiki
diagramNameUntitled Diagram-1693262547481.drawio
pCenter0
width963.1764705882354
links
tbstyle
height2305.54999999999995

3. Dbvisit Switchover

3.1 Switchover with WAL Streaming Mode

...

  1. The shipping mode configuration and the time difference between standby and primary

  2. The message indicates that the configuration is ready for switchover.

  3. User scripts that can be executed post the switchover process on new primary and standby.

  4. Click Start to start the switchover process.

Image RemovedImage Added

  1. The configuration is In Sync with the WAL Shipping method in the reverse direction.

  2. The observer is enabled once the switchover is completed and is now monitored.

  3. The new primary server and Cluster status show ONLINE on port 5433.

  4. The WAL Shipping method is used by the cluster to sync between standby and primary.

  5. The new standby server and cluster status showing HOT STANDBY on port 5433.

...