Rate This Document
Findability
Accuracy
Completeness
Readability

Testing Functions (Primary/Secondary Replication Mode)

  1. Start a Docker container in the server environment and deploy the container in primary/secondary replication mode by referring to Redis Deployment Guide.
  2. Start redis_benchmark on the client to perform the test. Replace $HOST in the command with the IP address of the server, $PORT with the port number of the primary Redis, and redis-benchmark with the actual path.
    1
    redis-path/src/redis-benchmark -h $HOST -p $PORT -c 200 -n 10000000 -r 10000000 -t set,get --threads 20
    

    If no error is reported and the primary Redis does not exit abnormally, the function verification is successful.