What is Redis Cluster, and what problem does it solve compared to running a single Redis instance?
Short answer
Redis Cluster is a way to run Redis across multiple connected nodes that automatically share data between them, solving the problem of a single Redis instance being limited by one server's available memory and processing power, letting you scale out horizontally as your data and…
Advertisement
AModel answer
Redis Cluster is a way to run Redis across multiple connected nodes that automatically share data between them, solving the problem of a single Redis instance being limited by one server's available memory and processing power, letting you scale out horizontally as your data and traffic grow.
Example
-- A minimal cluster requires at least three master nodes redis-cli --cluster create node1:6379 node2:6379 node3:6379 --cluster-replicas 0
Real-world example
A growing application that outgrows a single Redis server's memory capacity moves to Redis Cluster, spreading its data across several servers that together can hold far more than any one machine alone.
Likely follow-ups
- What is the minimum number of nodes required to run a Redis Cluster?
- Does Redis Cluster automatically handle failover if a node goes down?
Related topics