现在使用的是redis 2.8.9 ,如何像mysql一样能监控到主从延迟的信息呢?
信息中有一段:
role:master
connected_slaves:2
slave0:ip=10.26.77.28,port=9102,state=online,offset=18096704050,lag=1
slave1:ip=10.52.50.18,port=9101,state=online,offset=18103346170,lag=1
master_repl_offset:18096710606
master_repl_offset
slave中是 slave_repl_offset
测试发现, 这两个值不能做为判断标准,slave的offset可能比master高. 求解?
lzDo you have an answer? I'm also looking for this method.
Is there any way?
redis replication lag #2375
https://github.com/antirez/re...
Use info replication
on the mastermaster_repl_offset - slave0:offset