MXS-1446: Add execution of dummy failover command
The failover command is simulated by executing a call to /usr/bin/echo with all possible monitor parameters. This allows testing of the failover mechanism without actually using the failover command.
This commit is contained in:
@ -206,6 +206,7 @@ struct mxs_monitor
|
||||
time_t journal_max_age; /**< Maximum age of journal file */
|
||||
uint32_t script_timeout; /**< Timeout in seconds for the monitor scripts */
|
||||
uint32_t failover_timeout; /**< Timeout in seconds for failover script */
|
||||
bool failover; /**< Whether failover functionality is enabled */
|
||||
int64_t last_master_up; /**< Time when the last master_up event was triggered */
|
||||
int64_t last_master_down; /**< Time when the last master_down event was triggered */
|
||||
struct mxs_monitor *next; /**< Next monitor in the linked list */
|
||||
@ -254,6 +255,7 @@ extern const char CN_BACKEND_CONNECT_TIMEOUT[];
|
||||
extern const char CN_MONITOR_INTERVAL[];
|
||||
extern const char CN_JOURNAL_MAX_AGE[];
|
||||
extern const char CN_SCRIPT_TIMEOUT[];
|
||||
extern const char CN_FAILOVER[];
|
||||
extern const char CN_FAILOVER_TIMEOUT[];
|
||||
extern const char CN_SCRIPT[];
|
||||
extern const char CN_EVENTS[];
|
||||
|
Reference in New Issue
Block a user