What is Redis OSS Cluster?
Redis Cluster provides a way to run a Redis installation where data is automatically sharded across multiple Redis nodes. It is composed of multiple Redis nodes that are connected to each other and share data. Each node is responsible for a subset of the data, and the data is replicated across the nodes. This ensures that if one node fails, the data is still available from the other nodes. Redis Cluster also provides automatic failover, which means that if one node fails, the other nodes will take over its responsibilities. The most important components are the master nodes, which are responsible for managing the cluster and replicating data. The slave nodes are responsible for serving data to clients. Finally, the sentinels are responsible for monitoring the cluster and providing automatic failover. Open-source Redis has its own protocol when communicating with the database, and client libraries need to specify where each key goes.
So, with Redis Cluster, you get the ability to:
-
Automatically split your dataset among multiple nodes.
-
Continue operations when a subset of the nodes are experiencing failures or are unable to communicate with the rest of the cluster.