- Report a bug
Most questions will be answered in the discussion group.
You will need one for each MySQL server and one for each role.
MMM does not any balancing between mysql servers it just keeps system alive by monitoring all servers in cluster and moving roles when some server dies. So I think we should say not “LVS vs MMM”, but “LVS + MMM”.
MMM perform following checks for every server:
# IP connectivity (fping) # MySQL connectivity (mysql connect and SELECT NOW()) # MySQL IO and SQL threads status (SHOW SLAVE STATUS) # MySQL replication backlog - seconds behind master (SHOW SLAVE STATUS)
In addition to these checks MMM manages read-only mode on the server to be sure that slaves could not process writes and only active master could.
You just need to configure the IP address, for each computer, specified at your Cluster Hosts Addresses section on your Configuration File. As soon as MMM Agent start and communicate with MMM Monitor, it will setup the additional IPs for the roles.
Using Configuration Example as reference, you will ONLY need to setup IPs 192.168.1.8 at master 1 and 192.168.1.9 at master2.
Using Configuration Example as reference you will write to IP 192.168.1.200 and read from 192.168.1.100, 192.168.1.101.
If master1 fails MMM Monitor will move IP address 192.168.1.200 to master2 automatically.
This user account would be used for server monitoring by following checks:
So, for monitoring account you'll need *REPLICATION CLIENT* privilege.
This account would be used to manage servers in cluster so it needs SUPER privileges.
Yes, but the mode will need to be set to 1 (active backup)
Yes, use the build-in check_proc function as follows:
./check_procs -C perl -a mmmd_agent -c1:1
./check_procs -C perl -a mmmd_angel -c1:1
For more advanced checks, you can use check_mmm, which is included in http://code.google.com/p/check-mysql-all/
That entirely depends on how much downtime you can handle, with the following exceptions: