Mysql Failovers Using Python
Mysql Failovers Using Python
script: ./mysql_failover_db.py
default options: -d
execute command: -e <command>
target servers: -t <servers>
source servers: -s <servers>
Goals:
1. Perform Failover within
1 hour with downtime.
2. Automate commands with
Python script.
3. Perform FailBack later
with 1 hour of downtime.
4. Perform on multiple
MySQL Master servers.
MySQL Failovers using Python
1. Perform Backups of
Primary Pod databases.
2. Turn off Replication to
Failover Slave in
Primary Pod
./mysql_failover_db.py -d -e slave_status -a
MySQL Failovers using Python
1. Change permissions on
"application" account in
MySQL to writeable in the
Remote or west coast Pod.