Learn Labs
Redis Cluster

Self-test

Check your understanding

Self-test10 questions

—/10
  1. How is a key mapped to a node in Redis Cluster? Why slots instead of hashing keys directly to nodes?

  2. What's the difference between a MOVED and an ASK redirect?

  3. Why do cluster-aware clients rarely see redirects in steady state?

  4. Why does MSET a 1 b 2 fail in a cluster, and how do hash tags fix it?

  5. How can hash tags create a hot shard? Give a good and a bad tag.

  6. What happens to the whole cluster when a primary and its replica both fail? Which setting changes that?

  7. How does a manual CLUSTER FAILOVER avoid losing writes?

  8. What happens to keys during resharding, and why are big keys a problem then?

  9. When should you move from Sentinel to Cluster?

  10. Design question

    Plan growing a 3-primary cluster to 6 primaries with zero downtime: steps, order, what to monitor, and how to roll back.