February 2020
Intermediate to advanced
734 pages
38h 13m
English
For the purposes of this recipe, pgha1 will remain our primary node, the standby will be pgha2, and our witness is pgha3. The VIP is 10.0.30.50. Follow these steps to test the failover process:
sudo systemctl stop postgresql@12-main
Red Hat derivatives should use this command to stop PostgreSQL instead:
sudo systemctl stop postgresql-12
tail -f /var/log/postgresql/repmgr.log
watch -n 1 repmgr cluster show
ip addr ...
Read now
Unlock full access