Advertisement
Intermediate Redis, Redis Sentinel & High Availability

What is the quorum setting in a Sentinel configuration, and how does it affect the decision to trigger a failover?

Short answer

The quorum setting specifies the minimum number of Sentinel instances that must agree the primary is actually unreachable before a failover process begins, providing protection against a single Sentinel's false positive triggering an unnecessary and potentially disruptive…

Save Redis mock interview
Advertisement
AModel answer
The quorum setting specifies the minimum number of Sentinel instances that must agree the primary is actually unreachable before a failover process begins, providing protection against a single Sentinel's false positive triggering an unnecessary and potentially disruptive failover based on its own isolated network issue.
Example

sentinel monitor mymaster 192.168.1.10 6379 2 -- The final number 2 is the quorum value

Real-world example
A team running five Sentinel instances configures a quorum of three, ensuring a majority must agree before any failover is triggered, providing strong protection against a false alarm caused by any single Sentinel's temporary issue.
Likely follow-ups
  • How do you choose an appropriate quorum value for a given number of Sentinel instances?
  • What happens if the quorum is set too low relative to the total number of Sentinels?
Related topics