Redis & Caching (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
What is Redis Sentinel and how does it provide High Availability?
senior LevelSystem Design
In Simple Words: Sentinel is a distributed monitoring and failover management system:
- Runs as independent daemon processes alongside Redis master and replica nodes.
- Continuously pings master and replicas (
PING). - Quorum Consensus: If a majority of Sentinels agree that Master is unreachable (
sdown->odown), Sentinel elects a new master via Raft, reconfigures replicas to replicate from the new master, and notifies clients via Pub/Sub.