Testing Redis Cluster
After setting up a Redis Cluster, it's necessary to simulate various kinds of failures to see how the Cluster behaves in the case of any unexpected outage or planned administration. In this recipe, we will test the Redis Cluster built in the previous recipe via a number of failure scenarios. Afterwards, the failover details will also be discussed.
Getting ready…
You need to have finished the Setting up Redis Cluster recipe in this chapter, and you need a host with redis-cli
installed as a Redis client to the Cluster. As a summary of the previous recipe, the information of the Cluster is listed in the following table:
Instance name | IP address | Port | ID | Slots |
|
|
|
|
|
|
|
|
| -- |
|
|
|
|
|
|
|
|
| -- |
|
|
|
|
|