MyMON is Bash Shell script desinged to run in a Master/Master MySql Replication Servers which are Highly Available by Heartbeat. This script keeps MySQL Servers Highly Available by having no single point of failure.

In MySQL Master / Master Replication Servers both are running as Master and Slave at a same time. We make 1st MySQL Master server through heartbeat as Primary Director for handling queries alone and 2nd MySQL Master server on Standby Director for the failover. So if the 1st MySQL Master Server goes down i.e Primary Director, MyMON will issue an alarm and make the 2nd MySQL Master Server i.e Standby Director to Primary Director to handling the queries.

But if after some fixing if the 1st MySQL Master server comes up. MyMON keep 1st MySQL Master server to wait to become a Primary Director for until its replication is fully sync with the 2nd MySQL Master server as its database is updated at the time of 1st MySQL Master server failure.