Redis Common Command Summary

Source: Internet
Author: User
Tags benchmark keep alive redis server

Reproduced in: http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/107.html?1455867352

1, Redis-benchmark
Redis benchmark information, Redis server performance detection

Redis-benchmark-h localhost-p 6379-c 100-n 100000
100 concurrent connections, 100,000 requests, detects Redis server performance with host localhost port 6379

[Email protected] redis-1.2.6]# redis-benchmark-h localhost-p 6379-c 100-n 100000====== PING ====== 10001 Requests Co Mpleted in 0.41 seconds Parallel clients 3 bytes payload Keep alive:10.01% <= 0 milliseconds23.09% <= 1 millisec onds85.82% <= 2 milliseconds95.60% <= 3 milliseconds97.20% <= 4 milliseconds97.96% <= 5 milliseconds98.83% < = 6 milliseconds99.41% <= 7 milliseconds99.70% <= 8 milliseconds99.99% <= 9 milliseconds100.00% <= conds24274.27 Requests per second

2, REDIS-CLI

Redis-cli-h localhost-p 6380 Monitor
Dump all the received requests in real time;
Monitoring host localhost, port 6380,redis connection and read-write operation

[Email protected] redis-1.2.6]# redis-cli-h localhost-p 6380 monitor+ok+1289800615.808225 "monitor" + 1289800615.839079 "GET" "Name" +1289800615.853694 "ping" +1289800615.853783 "ping" +1289800615.854646 "ping" + 1289800615.854974 "ping" +1289800615.857693 "ping" +1289800615.866862 "ping" +1289800615.871944 "ping" #p # page Header #e#

Redis-cli-h Localhost-p 6380 Info
Provide information and statistics about the server;
Provides statistics for host-localhost, Port-6380,redis services

[Email protected] redis-1.2.6]# redis-cli-h localhost-p 6380 inforedis_version:2.0.4redis_git_sha1:00000000redis_ git_dirty:0arch_bits:32multiplexing_api:epollprocess_id:21990uptime_in_seconds:490580uptime_in_days:5connected _clients:103connected_slaves:0blocked_clients:0used_memory:4453240used_memory_human:4.25mchanges_since_last_ Save:200bgsave_in_progress:0last_save_time:1290394640bgrewriteaof_in_progress:0total_connections_received : 809total_commands_processed:44094018expired_keys:0hash_max_zipmap_entries:64hash_max_zipmap_value:512pubsub_ Channels:0pubsub_patterns:0vm_enabled:0role:slavemaster_host:localhostmaster_port:6379master_link_status: Upmaster_last_io_seconds_ago:18db0:keys=1319,expires=0

3, Redis-stat

Redis-stat host localhost Port 6380 overview
Print General information about a Redis instance;
Real-time print out the overall information of host localhost, port as 6380,redis instance

[Email protected] redis-1.2.6]# redis-stat Port 6380 overview-------Data------------------Load--------------------- ---------Childs-keys   USED-MEM clients  requests      connections 1319   5.37M   103    44108021 (+ 44108021) 810         1319   5.38M   103    44108124 (+103)   810         1319   5.38M   103    44108225 (+101)   810         1319   5.39M   103    44108326 (+101)   810         1319   5.40M   103    44108427 (+101)   810         1319   5.41M   103    44108528 (+101)   810        #p # pagination Title #e#

Redis-stat host localhost Port 6380 overview
Measure Redis Server latency;
The output host is localhost, and the port is the response time for each request in the 6380,redis service

[Email protected] redis-1.2.6]# redis-stat port 6380 latency1:0.16 ms2:0.11 ms3:0.15 ms4:0.11 ms5:0.18 ms6:0.14 ms    

Redis Common Command Summary

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.