3.3.2.5. Tips and Tricks

The mysqlrpladmin utility allows users to
specify a script to execute before and after the failover and
switchover operations using the
--exec-before and
--exec-after options
respectively. Note that the script specified using the
exec-after option only runs in case the switchover/failover
executes successfully.

We can use the mysqlrpladmin utility to
start and stop all the slaves with the start/stop commands.
Using the stop command only stops servers that are actually
slaves of the specified master thus preventing us from
stopping unwanted servers.