Redis related gadgets: Redis-load, Redis-stat

Source: Internet
Author: User
Tags server port

Redis-load and Redis-stat are two small tools written by the Redis author Antirez, including:

  • Redis-load is a stress test tool for Redis
  • Redis-stat is a Redis status monitoring tool

Related code See: Https://github.com/antirez/redis-tools

1 download code
$ https://github.com/antirez/redis-tools.git
2 compiling
$ cd redis-tools$ make all
3 Redis-load

Redis-load is a Redis stress test tool that can be used to view specific uses:

.........

A simple test example:

$ ./Redis-Load Host 127.0.0.1 Port 6379PRNG seed  is:3312712080- Use  the ' seed ' option  to reproduce  the same sequence====== Report======10000 Requests inch 0.367 seconds  27247.96 Requests per Second   - Parallel Clients  Payload:1.. - bytes  Keep Alive:1  4.30% < 1 ms 79.07% < 2 ms 93.99% < 3 ms 98.53% < 4 ms 99.02% < 5 ms 99.24% < 6 ms 99.45% < 8 ms 99.50% < 9 ms 99.54% < MS 99.58% < MS 99.63% < MS 99.66% < MS 99.72% < MS 99.78% < MS 99.84% < MS 99.90% < MS 99.93% < MS 99.95% < MS100.00% < MS
4 Redis-stat

Redis-stat is a real-time monitoring of the status of Redis instances, including overview, Vmstat, Vmpage, ondisk-size, and latency, with specific information such as:

$./redis-stat Helpusage:redis-stat <type>...Options...Statistic Types:overview (default) Print general information about a Redis instance. Vmstat Print information about Redis VM activity. Vmpage Try to guess the best vm-page-size forYour dataset. Ondisk-size Stats and graphs about the values len once stored on disk. Latency Measure Redis Server latency. Options:host 127.0. 0. 1) Port 6379) delay <milliseconds> delay between requests (default: +Ms1Second). SampleSize <keys> number of keys to sample for ' Vmpage 'Stat. Logscale User Power-of-two Logarithmic scaleinchGraphs.

A simple test example:

$./redis-stat Host127.0. 0. 1Port6379-------data---------------------------Load---------------------Child-keys MEM clients blocked requests Connections29602      3.45M1       0       30090(+0)157         29602      3.45M1       0       30091(+1)157         29602      3.45M1       0       30092(+1)157         29602      3.45M1       0       30093(+1)157         29602      3.45M1       0       30094(+1)157         29602      3.45M1       0       30095(+1)157         29602      3.45M1       0       30096(+1)157         29602      3.45M1       0       30097(+1)157         29602      3.45M1       0       30098(+1)157......

Viewing real-time latency of Redis instances is also useful:

127.0.0.1637910.23 ms20.67 ms30.21 ms40.23 ms50.23 ms60.16 ms70.37 ms......

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Redis-related gadgets: Redis-load, Redis-stat

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.