speed up failover
This commit is contained in:
@@ -116,11 +116,13 @@ repmgr_setup_conf() {
|
|||||||
printf "use_replication_slots = on\n"
|
printf "use_replication_slots = on\n"
|
||||||
printf "pg_bindir = '/usr/lib/postgresql/15/bin/'\n"
|
printf "pg_bindir = '/usr/lib/postgresql/15/bin/'\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "failover = automatic\n"
|
printf "failover = automatic\n"
|
||||||
printf "promote_command = '/usr/bin/repmgr standby promote -f /etc/repmgr/repmgr.conf --log-to-file'\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 "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
|
} > /etc/repmgr/repmgr.conf
|
||||||
|
reconnect_interval
|
||||||
}
|
}
|
||||||
|
|
||||||
sudo service ssh start
|
sudo service ssh start
|
||||||
|
|||||||
Reference in New Issue
Block a user