Hello,
We have a quite a few redis instances and I just added slaves to most
of them. To do this for some of the biggest and busier ones however
was a little tricky and now I need to monitor how well the slaves are
doing relative to their master.
I did read the docs and search this mailing list and search the web
and read a few blogs and so on but there does not seem to be a clear
answer to this.
How do you do it?
Also, if anyone can explain what these mean, I'd really appreciate it:
1. What is "repl_backlog_active" ?
2. What is the "lag" in this line:
slave0:ip=10.144.178.126,port=6379,state=online,offset=83052571679,lag=1
and what is its measurement unit?
3. What is the "offset" in the above line and how does this relates to
master_repl_offset value?
slave0:ip=10.144.178.126,port=6379,state=online,offset=83052571679,lag=1
master_repl_offset:83809730520
repl_backlog_active:18
repl_backlog_size:1048576000e
repl_backlog_first_byte_offset:82761154521
4. Is min-slaves-max-lag realted to the lag value in the "slaveN:"
line in replication?
Thanks for help!
Adi
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Thanks Josiah!
Very useful information.
Regarding the on-line compression of data, SSH tunnels setup using v2
are using compression by default (with zlib) at level 6 (the
compression level is not configurable) so my question is why not using
SSH for these tunnels?
I will do some tests myself as soon as I can.
I am trying to get the number of bytes the slave is behind its master
in a python script to be run for monitoring purposes against the slave
but it seems I can't do this.... any other ideas on how to do this
reliably?
Makes total sense now and thank you clarified that Josiah.I have a python script doing all the monitoring for redis servers, master or slave (even in read-only mode) and replication.I think it is a good thing if we could add these details to the documentation and the script as an example. It this possible?
Also, now that I can monitor the replication, I will start testing the compression tunnel for master-slave communication and come back with details.
On Thu, Jun 5, 2014 at 6:06 AM, Adi Chiru <adic...@gmail.com> wrote:
Makes total sense now and thank you clarified that Josiah.I have a python script doing all the monitoring for redis servers, master or slave (even in read-only mode) and replication.I think it is a good thing if we could add these details to the documentation and the script as an example. It this possible?Send a pull request for the docs :)On the monitoring side of things, many existing monitoring systems (munin, nagios, others...) already have plugins that know how to interpret how far behind Redis slaves are. Which system are you using?