Testing Functions (Primary/Secondary Replication Mode)
- Start a Docker container in the server environment and deploy the container in primary/secondary replication mode by referring to Redis Deployment Guide.
- 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.
1redis-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.
Parent topic: Verifying the Feature