This post is the fifth of a series that started here.
From the previous posts of this series, we now have an instance restart script that can restart the database node in case of failure and automatically reconfigure Pacemaker and the other servers that needs to access the MySQL server. What we will cover in this post is the monitoring script that run on the MySQL node.
At its smallest expression, the instance monitoring script is a simple empty loop that will run forever like:
PLAIN TEXT CODE:
- #!/bin/bash
- while [ 1 ]
- do
- sleep 60
- done
Although fully functional, this monitoring script is rather weak could be …
[Read more]