FAQ
Howdy!

We use Redis heavily as an object cache. It works fine just sometimes we
suffer from short unavailabilities (<1 min). In that minute the cache
responds slow. In the slowlog it is only the "INFO" command listed at exact
these times [1]. Also in the commandstats "INFO" cmd takes a while:

cmdstat_info:calls=52418,usec=288718220,usec_per_call=5508.00

whereas all the other commands are very fast [2].

The info is sent from munin and nagios periodically. The main questions are:

* Why is the info command slow?
* Is there a better way to monitor redis than the info command?
* Would it be faster to monitor more specificially (i.e. call info stats
instead of the general info)?

Used Version is still 2.6.10.

Thanks for you help & kind regards
david


[1]

redis-cli slowlog get 5
1) 1) (integer) 294
    2) (integer) 1392801124
    3) (integer) 10984
    4) 1) "INFO"
2) 1) (integer) 293
    2) (integer) 1392801122
    3) (integer) 11161
    4) 1) "INFO"
3) 1) (integer) 292
    2) (integer) 1392801076
    3) (integer) 10591
    4) 1) "info"
4) 1) (integer) 291
    2) (integer) 1392750490
    3) (integer) 11717
    4) 1) "INFO"
5) 1) (integer) 290
    2) (integer) 1392750479
    3) (integer) 12547
    4) 1) "INFO"

---

[2]

# Commandstats
cmdstat_get:calls=58867659325,usec=130206363235,usec_per_call=2.21
cmdstat_set:calls=20040632,usec=51470471,usec_per_call=2.57
cmdstat_setnx:calls=93821519,usec=271465060,usec_per_call=2.89
cmdstat_setex:calls=5685911337,usec=21811584431,usec_per_call=3.84
cmdstat_del:calls=322235792,usec=734348172,usec_per_call=2.28
cmdstat_exists:calls=20628974,usec=45608932,usec_per_call=2.21
cmdstat_incr:calls=132,usec=423,usec_per_call=3.20
cmdstat_mget:calls=839389035,usec=3035985424,usec_per_call=3.62
cmdstat_lpush:calls=259587833,usec=961325129,usec_per_call=3.70
cmdstat_lrange:calls=1294093639,usec=2882593331,usec_per_call=2.23
cmdstat_ltrim:calls=259575908,usec=858534776,usec_per_call=3.31
cmdstat_sadd:calls=109430271,usec=257553470,usec_per_call=2.35
cmdstat_srem:calls=2420009,usec=9993417,usec_per_call=4.13
cmdstat_scard:calls=109430180,usec=212362324,usec_per_call=1.94
cmdstat_spop:calls=35020,usec=54428,usec_per_call=1.55
cmdstat_smembers:calls=40398,usec=1029261,usec_per_call=25.48
cmdstat_zadd:calls=687199901,usec=2614089988,usec_per_call=3.80
cmdstat_zincrby:calls=2601513602,usec=31467886382,usec_per_call=12.10
cmdstat_zremrangebyrank:calls=48826454,usec=185237417,usec_per_call=3.79
cmdstat_zrange:calls=4199,usec=25530,usec_per_call=6.08
cmdstat_zcount:calls=467156,usec=1420930,usec_per_call=3.04
cmdstat_zrevrange:calls=5312626512,usec=43170626607,usec_per_call=8.13
cmdstat_zcard:calls=485708,usec=881302,usec_per_call=1.81
cmdstat_hset:calls=20588750,usec=89020547,usec_per_call=4.32
cmdstat_hget:calls=14777197,usec=29592569,usec_per_call=2.00
cmdstat_hmset:calls=15502189,usec=68164925,usec_per_call=4.40
cmdstat_hincrby:calls=425645194,usec=2750391512,usec_per_call=6.46
cmdstat_hdel:calls=261885,usec=1094026,usec_per_call=4.18
cmdstat_hgetall:calls=1475391530,usec=3100720503,usec_per_call=2.10
cmdstat_incrby:calls=594422,usec=2344508,usec_per_call=3.94
cmdstat_expire:calls=749830868,usec=1421266469,usec_per_call=1.90
cmdstat_ping:calls=876,usec=974,usec_per_call=1.11
cmdstat_info:calls=52418,usec=288718220,usec_per_call=5508.00
cmdstat_ttl:calls=4508528449,usec=7904342897,usec_per_call=1.75
cmdstat_config:calls=20944,usec=221131,usec_per_call=10.56
cmdstat_client:calls=19,usec=2974217,usec_per_call=156537.73
cmdstat_slowlog:calls=12,usec=329,usec_per_call=27.42

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to redis-db@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupredis-db @
categoriesredis
postedFeb 19, '14 at 10:41a
activeFeb 19, '14 at 10:41a
posts1
users1
websiteredis.io
irc#redis

1 user in discussion

David: 1 post

People

Translate

site design / logo © 2022 Grokbase