mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Add %v, %u and %t parameters to "failover_validation_command"
These indicate: - the number of visible nodes sharing the current upstream - the number of nodes on the current upstream - the total number of nodes in the entire repmgr cluster. This allows the failover_validation_command to be used to perform more thorough validations, including cross-referencing external cluster management state (e.g. if managed by kubernetes). GitHub #651.
This commit is contained in:
committed by
Ian Barwick
parent
f1bdb09512
commit
73e8373337
@@ -496,6 +496,7 @@ bool get_local_node_record(PGconn *conn, int node_id, t_node_info *node_info);
|
||||
bool get_primary_node_record(PGconn *conn, t_node_info *node_info);
|
||||
|
||||
bool get_all_node_records(PGconn *conn, NodeInfoList *node_list);
|
||||
bool get_all_nodes_count(PGconn *conn, int *count);
|
||||
void get_downstream_node_records(PGconn *conn, int node_id, NodeInfoList *nodes);
|
||||
void get_active_sibling_node_records(PGconn *conn, int node_id, int upstream_node_id, NodeInfoList *node_list);
|
||||
bool get_child_nodes(PGconn *conn, int node_id, NodeInfoList *node_list);
|
||||
|
||||
Reference in New Issue
Block a user