Updated on 2024-12-12 GMT+08:00

Test Data of Master/Standby DCS Redis 4.0 or 5.0 Instances

Test Environment

  • Redis instance specifications

    Redis 4.0 or 5.0 | 8 GB | master/standby

    Redis 4.0 or 5.0 | 32 GB | master/standby

  • ECS flavors

    General computing-enhanced | c6.2xlarge.2 | 8 vCPUs | 16 GB

  • ECS image

    Ubuntu 18.04 server 64-bit

  • Test tool

    A single ECS is used for the test. The test tool is redis-benchmark.

Test Command

redis-benchmark -h {IP} -p {Port} -a {password} -n {nreqs} -r {randomkeys} -c {connection} -d {datasize} -t {command}

Reference values: -c {connect_number}: 500; -n {nreqs}: 10,000,000; -r {randomkeys}: 1,000,000; -d {datasize}: 32; -t {command}: set

Test Result

  • The following test results are for reference only. The performance may vary depending on the site environment and network fluctuation.
  • QPS: Query per second, indicates number of read and write operations per second. Unit: count/second.
  • Average Latency: Average latency of operations, in milliseconds.
  • xth Percentile Latency: latency of x% of operations, in milliseconds. For example, if the value is 10 ms, 99.99th percentile latency indicates that 99.99% queries can be processed within 10 ms.
Table 1 Test result of running the SET command

Redis Cache Size

CPU Type

Concurrent Connections

QPS

99.99th-Percentile Latency (ms)

First 100th-Percentile Latency (ms)

Last 100th-Percentile Latency (ms)

Average Latency (ms)

8 GB

x86

500

132,068.98

11

18

205

3.298

10,000

82,386.58

171

178

263

69.275

32 GB

x86

500

131,385.33

9.5

16

17

3.333

10,000

82,275.41

157

162.18

162.43

62.105

Table 2 Test result of running the GET command

Redis Cache Size

CPU Type

Concurrent Connections

QPS

99.99th-Percentile Latency (ms)

First 100th-Percentile Latency (ms)

Last 100th-Percentile Latency (ms)

Average Latency (ms)

8 GB

x86

500

138,652.02

7

11

12

2.117

10,000

82,710.94

123.7

281.6

282.9

61.078

32 GB

x86

500

139,113.02

6.6

10

11

2.119

10,000

82,489.36

100

105.66

106

60.968