added config options sleep_delay and sleep_monitor

sleep_monitor replaces the old SLEEP_MONITOR define and makes it
configurable; this is the interval in which we monitor

sleep_delay replaces the old sleep(300) when waiting for the master to
recover.
This commit is contained in:
Christian Kruse
2014-01-17 13:50:12 +01:00
parent a7d3c9b93a
commit 5fc4a0382f
5 changed files with 30 additions and 9 deletions

View File

@@ -47,3 +47,15 @@ pg_bindir=/usr/bin/
# redirect stderr to a logfile
#
# logfile='/var/log/repmgr.log'
#
# change monitoring interval; default is 2s
#
# sleep_monitor=2
#
# change wait time for master; before we bail out and exit when the
# master disappears, we wait 6 * sleep_delay seconds; by default this
# would be half an hour (since sleep_delay default value is 300)
#
# sleep_delay=300