MXS-1513: Switchover script

First version of switchover script. Unsafe to run as it has no
timeouts for most queries. Also, removed code launching the
previous switchover_script.
This commit is contained in:
Esa Korhonen
2017-11-09 14:50:54 +02:00
parent 032b2f3846
commit b63c6504a3
2 changed files with 200 additions and 109 deletions

View File

@ -66,7 +66,6 @@ typedef struct
bool failover; /**< If master failover is enabled */
uint32_t failover_timeout; /**< Timeout in seconds for the master failover */
bool switchover; /**< If master switchover is enabled */
char* switchover_script; /**< Script to call for performing master switchover */
uint32_t switchover_timeout; /**< Timeout in seconds for the master switchover */
char* replication_user; /**< Replication user for failover */
char* replication_password; /**< Replication password for failover*/