repmgrd: improve failover handling

Make retry frequency/interval configurable as per streaming replication.
This commit is contained in:
Ian Barwick
2017-07-17 14:56:52 +09:00
parent a56bb41891
commit 48a0aa3bf7
2 changed files with 55 additions and 6 deletions

View File

@@ -503,6 +503,7 @@ monitor_streaming_standby(void)
PQfinish(upstream_conn);
upstream_conn = try_reconnect(&upstream_node_info);
/* Node has recovered - log and continue */
if (upstream_node_info.node_status == NODE_STATUS_UP)
{
int upstream_node_unreachable_elapsed = calculate_elapsed(upstream_node_unreachable_start);