This article gives an example test method to determine how well a machine can act as a Redis server.
The following sections are covered:
Applies to the following Sophos products and versions PureMessage for Unix 6.4.0 and above
The example below shows test results that can help in deciding the sizing requirements for Redis server.
~/redis/redis-3.2.8$ src/redis-benchmark -e -h 192.168.56.22 -c 15000 -n 300000 -d 143 -t SET
The command above runs the bench-marking application with the parameters shown below:
15000 concurrent connections (-c), 300,000 requests (-n), 143 bytes of payload (-d), do SET operation (-t):
pmx6@csm:~/redis/redis-3.2.8$ src/redis-benchmark -e -h 192.168.56.22 -c 15000 -n 300000 -d 143 -t SET
====== SET ======
300000 requests completed in 7.44 seconds
15000 parallel clients
143 bytes payload
keep alive: 1
100.00% <= 359 milliseconds
40338.85 requests per second
The example above shows that It took less than 359 milliseconds to serve all the requests (at the rate of 40338.85 requests / second). This test was done on a virtual machine with 768 MB of RAM and 1 CPU allocated: Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz.
Use these parameters to benchmark your machines and determine if they are fast enough.
If you've spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article. This is invaluable to us to ensure that we continually strive to give our customers the best information possible.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. For technical support post a question to the community. Or click here for new feature/product improvements. Alternatively for paid/licensed products open a support ticket.