MySQL MasterHA scripts for failover management and monitoring