Self-test
Check your understanding
Self-test11 questions
Describe full sync and partial sync. What decides which one happens?
Why is the default 1 MB replication backlog often too small? How would you size it?
Explain how an acknowledged write can be lost during failover.
What does
WAITguarantee and what doesn't it? Why must it run on the same connection as the write?Why is reading from replicas risky for a user who just updated their profile?
Why is a primary with persistence disabled and auto-restart dangerous to its replicas?
Walk through SDOWN, ODOWN, leader election, and promotion. Which step needs a majority of all Sentinels?
Why must every node, including the primary, have
masterauthset?Describe a split-brain scenario with Sentinel and how
min-replicas-to-writelimits the damage.Where should three Sentinels be deployed, and why not on the primary's machine?
- 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.