Add "repmgr node status"

Outputs an overview of a node's status, and emits warnings if any
issues detected.
This commit is contained in:
Ian Barwick
2017-07-25 00:12:16 +09:00
parent 93c35618a2
commit 8a2e4db1bc
8 changed files with 290 additions and 11 deletions

View File

@@ -22,13 +22,15 @@
#define STANDBY_SWITCHOVER 8
#define STANDBY_ARCHIVE_CONFIG 9
#define STANDBY_RESTORE_CONFIG 10
#define CLUSTER_SHOW 11
#define CLUSTER_CLEANUP 12
#define CLUSTER_MATRIX 13
#define CLUSTER_CROSSCHECK 14
#define CLUSTER_EVENT 15
#define BDR_REGISTER 16
#define BDR_UNREGISTER 17
#define BDR_REGISTER 11
#define BDR_UNREGISTER 12
#define NODE_STATUS 13
#define NODE_CHECK 14
#define CLUSTER_SHOW 15
#define CLUSTER_CLEANUP 16
#define CLUSTER_MATRIX 17
#define CLUSTER_CROSSCHECK 18
#define CLUSTER_EVENT 19
/* command line options without short versions */
#define OPT_HELP 1