Database / ValKey Interview questions
What is the purpose of Valkey Sentinel?
Sentinel is a set of separate processes that monitor a primary-replica deployment, detect when the primary becomes unreachable, and automatically promote a replica to take over, without requiring the dataset to be sharded across nodes.
Multiple Sentinels run independently and gossip with each other, so a failover decision is based on quorum agreement rather than a single process's opinion, avoiding false failovers caused by one Sentinel's local network issue.
Client libraries that are Sentinel-aware ask Sentinel for the current primary's address instead of hardcoding it, so applications keep working automatically after a failover.
More Related questions...