Configure WatchDog
Configure WatchDog
system when they do not get a heartbeat within a specified timeframe. This adds an
additional layer of fail safe in case usual Patroni split-brain protection
mechanisms fail.
Patroni will try to activate the watchdog before promoting PostgreSQL to primary.
Currently watchdogs are only supported using Linux watchdog device interface. For
more information about watchdog, see the Patroni documentation.
watchdog-device = /dev/watchdog
Save and close the editor when you are finished.
Next, start patroni on subsequent nodes, (pgsql02) for example, you will see
(pgsql02) is acting as secondary node in the cluster:
Start patroni on (pgsql03), and it will also act as the secondary node in the
cluster: