Replication & Clustering in Redis

From the Redis cheat sheet · Clustering & Replication · verified Jul 2026

Replication & Clustering

Master-slave replication and Redis Cluster

bash
# Replication setup
REPLICAOF master-host 6379    # Make this instance a replica
REPLICAOF NO ONE              # Promote to master

# Cluster commands
CLUSTER NODES                 # List cluster nodes
CLUSTER INFO                  # Cluster information
CLUSTER SLOTS                 # Slot assignments
📋 Replication for read scaling and backup
🔰 Sentinel for automatic failover
🎯 Cluster for horizontal scaling
⚠️ Use hash tags for multi-key operations in cluster
Back to the full Redis cheat sheet