In the previous recipes, we have learned how to set up, test, and maintain a high-availability architecture with Redis Sentinel. As we described in the Introduction to this chapter, the data in Redis has to be partitioned as it grows dramatically. For this scenario, without question, it's Redis Cluster, supported since 3.0 version, that comes into play. From this recipe on, we will follow the setup-test-administration pattern to show you how to use Redis Cluster to achieve automatic data sharding and high availability in Redis. In this recipe, we will first explore how to set up a Redis Cluster, and discuss how a Redis Cluster works.
You need to finish the installation of the Redis Server as we described in the Downloading and installing Redis recipe in Chapter 1, Getting Started with Redis.
Basic knowledge of Redis replication, which is the subject of Chapter 5, Replication, is required for a better understanding of how the Redis Cluster works.
To prepare...