Skip to content

Instantly share code, notes, and snippets.

@hirose31
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirose31/9207096 to your computer and use it in GitHub Desktop.
Save hirose31/9207096 to your computer and use it in GitHub Desktop.
Sample output of redis-traffic-stats <https://github.com/hirose31/redis-traffic-stats>

redis-traffic-stats

Summary

  • Duration:
    • 2014-02-24 16:34:10 - 2014-02-24 16:34:13 (3s)
  • Total Traffic:
    • 43311772 bytes (14437257.33 bytes/sec)
  • Total Requests:
    • 110109 requests (Avg 36703.00 req/sec, Peak 47170.00 req/sec)

Top Commands

By count

Command Count Pct Req/sec
LRANGE 39423 35.80 13141.00
PING 18367 16.68 6122.33
LPUSH 12553 11.40 4184.33
INCR 8547 7.76 2849.00
SPOP 8076 7.33 2692.00
GET 7993 7.26 2664.33
SET 6024 5.47 2008.00
LPOP 5947 5.40 1982.33
MSET 2085 1.89 695.00
SADD 1094 0.99 364.67

By traffic

Command Bytes Byte/sec
LRANGE 43089000 14363000.00
PING 73468 24489.33
LPUSH 62765 20921.67
INCR 25257 8419.00
GET 23979 7993.00
LPOP 17841 5947.00
SET 12048 4016.00
MSET 4170 1390.00
SPOP 2150 716.67
SADD 1094 364.67

Command Detail

LRANGE

Key Bytes Byte/sec Count Pct Req/sec
mylist 43089000 14363000.00 39423 100.00 13141.00

PING

Key Bytes Byte/sec Count Pct Req/sec

LPUSH

Key Bytes Byte/sec Count Pct Req/sec
mylist 62765 20921.67 12553 100.00 4184.33

INCR

Key Bytes Byte/sec Count Pct Req/sec
counter:rand:000000000061 327 109.00 109 1.28 36.33
counter:rand:000000000054 315 105.00 105 1.23 35.00
counter:rand:000000000096 309 103.00 103 1.21 34.33
counter:rand:000000000000 306 102.00 102 1.19 34.00
counter:rand:000000000058 306 102.00 102 1.19 34.00
counter:rand:000000000094 297 99.00 99 1.16 33.00
counter:rand:000000000008 297 99.00 99 1.16 33.00
counter:rand:000000000071 294 98.00 98 1.15 32.67
counter:rand:000000000093 294 98.00 98 1.15 32.67
counter:rand:000000000086 294 98.00 98 1.15 32.67

GET

Key Bytes Byte/sec Count Pct Req/sec
foo:rand:000000000084 321 107.00 107 1.34 35.67
foo:rand:000000000004 303 101.00 101 1.26 33.67
foo:rand:000000000061 303 101.00 101 1.26 33.67
foo:rand:000000000077 288 96.00 96 1.20 32.00
foo:rand:000000000023 285 95.00 95 1.19 31.67
foo:rand:000000000056 282 94.00 94 1.18 31.33
foo:rand:000000000006 282 94.00 94 1.18 31.33
foo:rand:000000000060 279 93.00 93 1.16 31.00
foo:rand:000000000027 273 91.00 91 1.14 30.33
foo:rand:000000000016 270 90.00 90 1.13 30.00

LPOP

Key Bytes Byte/sec Count Pct Req/sec
mylist 17841 5947.00 5947 100.00 1982.33

SET

Key Bytes Byte/sec Count Pct Req/sec
foo:rand:000000000096 162 54.00 81 1.34 27.00
foo:rand:000000000046 158 52.67 79 1.31 26.33
foo:rand:000000000057 158 52.67 79 1.31 26.33
foo:rand:000000000094 154 51.33 77 1.28 25.67
foo:rand:000000000060 154 51.33 77 1.28 25.67
foo:rand:000000000090 150 50.00 75 1.25 25.00
foo:rand:000000000069 150 50.00 75 1.25 25.00
foo:rand:000000000051 148 49.33 74 1.23 24.67
foo:rand:000000000086 146 48.67 73 1.21 24.33
foo:rand:000000000028 144 48.00 72 1.20 24.00

MSET

Key Bytes Byte/sec Count Pct Req/sec
foo:rand:000000000042 68 22.67 34 1.63 11.33
foo:rand:000000000077 66 22.00 33 1.58 11.00
foo:rand:000000000088 64 21.33 32 1.53 10.67
foo:rand:000000000095 62 20.67 31 1.49 10.33
foo:rand:000000000032 58 19.33 29 1.39 9.67
foo:rand:000000000043 56 18.67 28 1.34 9.33
foo:rand:000000000064 56 18.67 28 1.34 9.33
foo:rand:000000000006 56 18.67 28 1.34 9.33
foo:rand:000000000046 54 18.00 27 1.29 9.00
foo:rand:000000000051 54 18.00 27 1.29 9.00

SPOP

Key Bytes Byte/sec Count Pct Req/sec
myset 2150 716.67 8076 100.00 2692.00

SADD

Key Bytes Byte/sec Count Pct Req/sec
myset 1094 364.67 1094 100.00 364.67

Slow Commands

Time Command
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
0.759 LRANGE mylist 0 599
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment