Failover procedures
The primary purpose of physical replication is high availability. That means in the case of a failure of the master server, the standby can take its role and become a new master. This is called failover. As mentioned in the Log shipping replication section, to promote the standby and make it a new master, we would need to delete the recovery.conf file and restart the server. It's important not to use the old master anymore, otherwise, the new master and the old master would have different data.
After the failover, the solution is not redundant anymore. The old standby has taken the role of a new master, but the old master is broken. It does not become a new standby. Database administrators need to set up a new standby ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access