Use 100 as the default priority; 0 or less means node will never be promoted

This commit is contained in:
Ian Barwick
2015-03-26 10:38:20 +09:00
parent 15a531fed8
commit 3e621f43d1
7 changed files with 38 additions and 20 deletions

View File

@@ -116,7 +116,7 @@ reconnect_interval=10
# Autofailover options
failover=automatic # one of 'automatic', 'manual'
priority=-1
priority=100 # a value of zero or less prevents the node being promoted to master
promote_command='repmgr standby promote -f /path/to/repmgr.conf'
follow_command='repmgr standby follow -f /path/to/repmgr.conf -W'