Add an option for STANDBY FOLLOW to wait for a master to appear.

This is important for autofailover to do the right thing when
standbys detected master death at different times.

While this is a new option, seems important for the autofailover
to work properly so i will consider the lack of it a bug and
will backpatch to 2.0 where autofailover was introduced.

For gripe from Alex Railean, about a standby not finding the new
master because the new master hasn't finish promoting.
This commit is contained in:
Jaime Casanova
2012-11-11 10:07:34 -05:00
parent cd1a84252e
commit 30e9d06172
3 changed files with 21 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ reconnect_interval=10
failover=automatic
priority=-1
promote_command='repmgr standby promote -f /path/to/repmgr.conf'
follow_command='repmgr standby follow -f /path/to/repmgr.conf'
follow_command='repmgr standby follow -f /path/to/repmgr.conf -W'
# Log level: possible values are DEBUG, INFO, NOTICE, WARNING, ERR, ALERT, CRIT or EMERG
# Default: NOTICE