MXS-2426 Do not permanently disable automatic cluster operations when they fail

Only disabled for "failcount" monitor ticks. Also turns some related log
messages to notices.
This commit is contained in:
Esa Korhonen
2019-04-05 14:30:19 +03:00
parent b9aec60d7a
commit 5ba305c2c1
2 changed files with 82 additions and 83 deletions

View File

@ -82,6 +82,8 @@ typedef struct
MXS_MONITORED_SERVER** excluded_servers; /**< Servers banned for master promotion during auto-failover. */
const char* promote_sql_file; /**< File with sql commands which are ran to a server being promoted. */
const char* demote_sql_file; /**< File with sql commands which are ran to a server being demoted. */
int cluster_operation_disable_timer; /**< Counter for temporary automatic cluster operation disabling. */
bool cluster_op_performed; /**< Has an automatic failover/rejoin been performed this loop? */
MXS_MONITOR* monitor;
} MYSQL_MONITOR;