Learn Labs
Replication & Sentinel

Self-test

Check your understanding

Self-test11 questions

—/11
  1. Describe full sync and partial sync. What decides which one happens?

  2. Why is the default 1 MB replication backlog often too small? How would you size it?

  3. Explain how an acknowledged write can be lost during failover.

  4. What does WAIT guarantee and what doesn't it? Why must it run on the same connection as the write?

  5. Why is reading from replicas risky for a user who just updated their profile?

  6. Why is a primary with persistence disabled and auto-restart dangerous to its replicas?

  7. Walk through SDOWN, ODOWN, leader election, and promotion. Which step needs a majority of all Sentinels?

  8. Why must every node, including the primary, have masterauth set?

  9. Describe a split-brain scenario with Sentinel and how min-replicas-to-write limits the damage.

  10. Where should three Sentinels be deployed, and why not on the primary's machine?

  11. Design question

    Design Redis HA for a session store across three availability zones, including client configuration, the failover time you'd expect, and how many seconds of writes you could lose.