MXS-1886 Auto-failover error tolerance

Auto-failover is no longer considered to have failed if the preconditions
are not met. An error message with the failed checks is printed once, but
the checks are repeated every loop as long as the master is down.
This commit is contained in:
Esa Korhonen
2018-06-13 16:28:58 +03:00
parent 18f51eba79
commit 9e68d8ec3d
2 changed files with 77 additions and 38 deletions

View File

@ -64,6 +64,7 @@ typedef struct
bool allow_cluster_recovery; /**< Allow failed servers to rejoin the cluster */
bool warn_set_standalone_master; /**< Log a warning when setting standalone master */
bool auto_failover; /**< If automatic master failover is enabled */
bool warn_failover_precond; /**< Print failover preconditions error message? */
uint32_t failover_timeout; /**< Timeout in seconds for the master failover */
uint32_t switchover_timeout; /**< Timeout in seconds for the master switchover */
char* replication_user; /**< Replication user for failover */