Keepalived for MySQL Version: 1.0
Howto:
-
You need to define the config.py which is the config of the check scripts
-
And set your sms url of the function send_sms in MySQLib.py
Instruction:
-
MySQLib.py: The project library with the connection\Logging\Email\Sms Funcs.
-
checkMySQL.py: Keepalived check alived script which will check MySQL instance health and gatway is alive.
-
notify.py: When Keepalived switch to master or backup or fail state, the script will be executed.
-
config.py: The project's config file.
Other language version
Email: hailong.sun1982@gmail.com QQ: 173386747