Monitor command on Redis Cluster 3.0.0

414 views
Skip to first unread message

rishim

unread,
Jun 21, 2014, 6:20:27 PM6/21/14
to redi...@googlegroups.com
Hi,

    I have setup a redis cluster using 3.0.0.  I want to monitor the list of commands get issued against each node by using 'monitor' command.
  
    I tried it on multiple master nodes of the cluster, however it does not show any output. 

    In standalone redis instance (not a part of cluster) ,  monitor command show all the calls.  Is there a different command to see the output against a cluster?

    I have used bare minimum redis config mentioned in the cluster tutorial.  

regards,
rishim

Jan-Erik Rediger

unread,
Jun 22, 2014, 6:51:18 AM6/22/14
to redi...@googlegroups.com
It works for me just fine:

MONITOR on a master with a slave attached:
127.0.0.1:7001> monitor
OK
1403434100.823264 [0 127.0.0.1:38570] "REPLCONF" "ACK" "1"
1403434101.836370 [0 127.0.0.1:38570] "REPLCONF" "ACK" "1"
1403434102.837609 [0 127.0.0.1:38570] "REPLCONF" "ACK" "1"
1403434103.841223 [0 127.0.0.1:38570] "REPLCONF" "ACK" "1"
1403434104.842364 [0 127.0.0.1:38570] "REPLCONF" "ACK" "1"
1403434105.844927 [0 127.0.0.1:38570] "REPLCONF" "ACK" "1"
1403434106.848234 [0 127.0.0.1:38570] "REPLCONF" "ACK" "15"
1403434107.851018 [0 127.0.0.1:38570] "REPLCONF" "ACK" "15"
1403434107.856061 [0 127.0.0.1:38584] "set" "foo" "bar"
1403434108.854913 [0 127.0.0.1:38570] "REPLCONF" "ACK" "69"
1403434109.856751 [0 127.0.0.1:38570] "REPLCONF" "ACK" "69"
1403434110.241833 [0 127.0.0.1:38589] "get" "foo"
1403434110.860136 [0 127.0.0.1:38570] "REPLCONF" "ACK" "69"

MONITOR on a master without slaves:

127.0.0.1:7002> monitor
OK
1403434147.760392 [0 127.0.0.1:40152] "set" "fooz" "bar"
1403434148.698017 [0 127.0.0.1:40153] "get" "fooz"

How are you testing the MONITOR? Using redis-cli or a custom script?
Which exact version of 3.0.0 are you using? The latest beta-6 provided
on redis.io or a git checkout?
> --
> 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.

rishim

unread,
Jun 22, 2014, 12:38:46 PM6/22/14
to redi...@googlegroups.com, jan...@fnordig.de
Sorry it was my mistake, I could see it now. I used 3.0.0 beta 6 available from redis.io download site and redis-cli. 

Thanks !
Reply all
Reply to author
Forward
0 new messages