Skip to content
lorebow

Step 1 of 9, about 1 min

Choose a mode

Pick replication, Sentinel, one Sentinel group for many services, or Cluster. The later steps follow your choice.

Redis has four ways to keep more than one copy. Pick the one you want to run: the Install, Check and Break steps follow your choice, and you can change it in any of them.

#The four modes

Replicas copy every write, but nothing promotes one if the primary dies. Use it to learn, or when a short outage on restart is acceptable. See it animated.

  • Pods: 3, one primary and two replicas.
  • Fails over by itself: no. Writes wait until the primary pod is back.
  • Your app needs: any Redis client.

#Not sure which to pick

Start with Sentinel: it fits most setups, and every Redis command keeps working. Choose Shared Sentinel when several services each need their own Redis, and Cluster only when the data or the writes are more than one server can take. Replication alone never fails over, so use it to learn. Compare all four side by side.