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:
Markus Mäkelä
2017-09-27 10:50:25 +03:00
parent 316f792242
commit 4c3d6f6884
6 changed files with 88 additions and 23 deletions

View File

@ -1593,6 +1593,7 @@ struct subcommand alteroptions[] =
"backend_connect_attempts Number of re-connection attempts\n"
"journal_max_age Maximum age of server state journal\n"
"script_timeout Timeout in seconds for monitor scripts\n"
"failover Enable or disable failover\n"
"failover_timeout Failover timeout in seconds\n"
"\n"
"This will alter an existing parameter of a monitor. To remove parameters,\n"