Skip navigation links

MySQL Forums :: Replication :: measuring slave lag without sysdate() - 4.1.13


Advanced Search

Re: measuring slave lag without sysdate() - 4.1.13
Posted by: Rick James ()
Date: February 08, 2012 02:09AM

The goal of replication is to have exactly the same stuff on the slave -- including NOW(), RAND(), etc.

The Heartbeat should insert NOW() (or SYSDATE()), let it replicate, then check to see how out-of-date the value is when you read it on the slave. You need to Master and Slave to be reasonably synchronized, say by NTP.

Options: ReplyQuote


Subject Views Written By Posted
measuring slave lag without sysdate() - 4.1.13 1391 wildcat crazy 02/07/2012 05:54AM
Re: measuring slave lag without sysdate() - 4.1.13 511 Rick James 02/08/2012 02:09AM
Re: measuring slave lag without sysdate() - 4.1.13 659 wildcat crazy 02/08/2012 04:26AM
Re: measuring slave lag without sysdate() - 4.1.13 563 Rick James 02/09/2012 11:05AM
Re: measuring slave lag without sysdate() - 4.1.13 812 wildcat crazy 02/09/2012 02:08PM
Re: measuring slave lag without sysdate() - 4.1.13 390 Rick James 02/11/2012 12:00AM
Re: measuring slave lag without sysdate() - 4.1.13 431 Baron Schwartz 02/20/2012 06:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.