How to do failover in postgres - DBACLASS DBACLASS
When you master server is crashed or inaccessible, then we can do failover and promote slave server as master. ENVIRONMENT DETAILS: PRIMARY SERVER(MASTER)= 10.20.30.40 STANDBY SERVER(SLAVE) =10.20.30.41 REPLICATION MODE- ASYNC POSTGRES VERSION- 14 Let’s say master becomes inaccessible, then we need to promote the slave using below command. on slave server: -bash-4.2$ which pg_ctl /usr/pgsql-14/bin
postgresql configurationintermediate
by PostgreSQL
13 views