repmgrd: improve handling of "degraded monitoring"

In some cases, the monitored upstream may not be available for a while
(e.g. network split), in which case it makes sense to have repmgrd
keep running and trying to reconnect. Previously it would just keel
over and quit.
This commit is contained in:
Ian Barwick
2017-07-06 17:13:00 +09:00
parent 6b82ecbafc
commit 35df85e67d
5 changed files with 195 additions and 42 deletions

View File

@@ -16,6 +16,7 @@
#define ERR_DB_CONN 6
#define ERR_DB_QUERY 7
#define ERR_PROMOTION_FAIL 8
#define ERR_MONITORING_TIMEOUT 9
#define ERR_STR_OVERFLOW 10
#define ERR_FAILOVER_FAIL 11
#define ERR_BAD_SSH 12