speed up failover

This commit is contained in:
Bernhard Radermacher
2026-02-23 12:56:52 +01:00
parent 838baf9860
commit 8b1e252589

View File

@@ -116,11 +116,13 @@ repmgr_setup_conf() {
printf "use_replication_slots = on\n"
printf "pg_bindir = '/usr/lib/postgresql/15/bin/'\n"
printf "\n"
printf "failover = automatic\n"
printf "promote_command = '/usr/bin/repmgr standby promote -f /etc/repmgr/repmgr.conf --log-to-file'\n"
printf "follow_command = '/usr/bin/repmgr standby follow -f /etc/repmgr/repmgr.conf --log-to-file --upstream-node-id=%n'\n"
printf "failover = automatic\n"
printf "promote_command = '/usr/bin/repmgr standby promote -f /etc/repmgr/repmgr.conf --log-to-file'\n"
printf "follow_command = '/usr/bin/repmgr standby follow -f /etc/repmgr/repmgr.conf --log-to-file --upstream-node-id=%n'\n"
printf "reconnect_attempts = 3\n"
printf "reconnect_interval = 5\n"
} > /etc/repmgr/repmgr.conf
reconnect_interval
}
sudo service ssh start