Which of these can be considered to monitor replication delay ? Redis_master_repl_offset, Redis_master_last_io_seconds_ago , Redis_slave_repl_offset


Given results from an INFO replication command like this:


You can tell that slave0 is behind master by 6. This is the difference between the master_repl_offset and the offset value in the slave0 line, which is the last number in it. If you have multiple slaves, each will get their own line with their own offset value.

|improve this answer|||||
  • What does value indicate ? What can be the threshold of a warning value ? – karan sindwani Feb 17 '16 at 12:04
  • @karansindwani I believe the value there is bytes. I used small numbers here as an example, real ones would likely be very large. On our logstash redis instance, 1MB is a sign of pressure worthy of notice, but on an application-stack redis, even 20KB is considered slow. It depends, and only you can know what bad looks like. – sysadmin1138 Feb 17 '16 at 13:22
  • For me the output looks like this slave0:ip=,port=6379,state=online,offset=925994074541,lag=0 so I'm looking at offset? – radtek Sep 28 '17 at 23:40
  • 1
    @radtek Yes, offset. – sysadmin1138 Sep 29 '17 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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