patternsqlMinor
How could one monitor MySQL replication?
Viewed 0 times
howcouldreplicationonemysqlmonitor
Problem
I am not a DBA, but I am interested in knowing how replication monitoring is done on MySQL severs.
In order to know if a slave is in sync with its master, one would typically check
There are tools available like
My question is, how else would a DBA like to monitor replication?
In order to know if a slave is in sync with its master, one would typically check
Seconds_Behind_Master, Slave_SQL_Running, Slave_IO_Running. There are tools available like
mk-table-checksum to verify replication integrity. My question is, how else would a DBA like to monitor replication?
Solution
Once I have asked the similar question there was ultimate Answer. Please have a look at it.
Then you will be clear with the
The Seconds_Behind_Master is not a good Parameter for monitoring the replication.
Try to use
For documentation of mk-heartbeat, click here.
UPDATE
Try MONyog Web based application which has separate Replication tab and pretty easy to use, with lots of features
This will let you know Status of all slaves and Master on Replication tab for example: Replication topology, Master detail, Slave detail in a tabular format. Also, using Monitors page, you can get alert if seconds_behind_master lags behind certain threshold value.
You can also use the MySQL Community Replication Monitor
The community driven MySQL replication monitoring tools is a collection of scripts in SQL and other languages, to achieve the same result that others can get with expensive applications.
Then you will be clear with the
Seconds_Behind_MasterThe Seconds_Behind_Master is not a good Parameter for monitoring the replication.
Try to use
mk-heartbeat monitoring script. I use that and it's really reliable.For documentation of mk-heartbeat, click here.
UPDATE
Try MONyog Web based application which has separate Replication tab and pretty easy to use, with lots of features
This will let you know Status of all slaves and Master on Replication tab for example: Replication topology, Master detail, Slave detail in a tabular format. Also, using Monitors page, you can get alert if seconds_behind_master lags behind certain threshold value.
You can also use the MySQL Community Replication Monitor
The community driven MySQL replication monitoring tools is a collection of scripts in SQL and other languages, to achieve the same result that others can get with expensive applications.
Code Snippets
Seconds_Behind_MasterContext
StackExchange Database Administrators Q#13720, answer score: 3
Revisions (0)
No revisions yet.