A master which is down for longer than failcount is considered an invalid master

If auto_failover is disabled and an alternative master exists, the
monitor will swap the master. This may break replication, but the
situation requires that the dba has set up a cluster with multiple
masters.
This commit is contained in:
Esa Korhonen
2018-07-19 19:23:16 +03:00
parent c9570ff616
commit 382a017518
3 changed files with 88 additions and 38 deletions

View File

@ -179,6 +179,8 @@ private:
* outside of a cycle. */
bool m_warn_failover_precond; /**< Print failover preconditions error message? */
bool m_warn_cannot_rejoin; /**< Print warning if auto_rejoin fails because of invalid gtid:s? */
bool m_warn_current_master_invalid; /**< Print warning if current master is not valid? */
bool m_warn_have_better_master; /**< Print warning if the current master is not the best one? */
// Base methods
MariaDBMonitor(MXS_MONITOR* monitor_base);