CentOS System
Installation:
Yum-y Install Redis
Bring your own Redisbench test tool
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
Benchmark Tool Test Information:
Test command:
Redis-benchmark-n 100000-C 60
Send 100,000 requests to the Redis server with 60 concurrent clients per request
Results (partial):
====== SET ======
Writing a test to a collection
100000 requests completed in 2.38 seconds
100,000 requests completed in 2.38 seconds
Parallel clients
60 Concurrent Clients per request
3 bytes Payload
Write 3 bytes of data at a time
Keep Alive:1
Keep a connection, a server to process these requests
93.06% <= milliseconds
99.96% <= milliseconds
99.98% <= milliseconds
99.99% <= milliseconds
100.00% <= milliseconds
All requests are completed within 62 milliseconds
42105.26 Requests per second
Processing 42105.26 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
redis-cli-h localhost-p 6380 Info
Provide information and statistics about the server;
Provides statistics for host-localhost, Port-6380,redis services
Redis-cli-h 10.10.86.x
>set name Jasonok>get name "Jason"
Redisbench and REIDS-CLI test, monitor redis status and performance