How do i measure redis replication delay

redisreplication

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

Best Answer

Given results from an INFO replication command like this:

slave0:172.16.101.23,6380,online,424821
master_repl_offset:424827

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.

Related Topic