Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have stetted up two databases which are synchronized with each other. But sometimes the sync process lags behind. I want to track this process and determine when the process is lagging?

share|improve this question

migrated from stackoverflow.com Sep 13 '11 at 15:23

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

The simplest way is to log into the database with a mysql client and run show slave status\G which will give you replication details including "seconds behind master".

For software options check http://stackoverflow.com/questions/1075433/mysql-monitor-replication

share|improve this answer
add comment

Seconds_Behind_Master from SHOW SLAVE STATUS is considered an unreliable measure of Slave lag. mk-heartbeat is often offered as a reliable alternative.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.