Sentinel quorum helps decide when to switch to a backup server if the main one stops working. It makes sure the decision is safe and agreed by enough helpers.
Sentinel quorum concept in Redis
sentinel monitor <master-name> <ip> <port> <quorum>
master-name is the name you give to your main Redis server.
quorum is the number of Sentinels that must agree a master is down before failover.
sentinel monitor mymaster 127.0.0.1 6379 2
sentinel monitor redis-master 192.168.1.10 6379 3
This example sets up a Sentinel to watch a Redis master named 'mymaster' on localhost port 6379. It requires 2 Sentinels to agree before failover. It also sets the time to consider the master down and the failover timeout.
sentinel monitor mymaster 127.0.0.1 6379 2 sentinel set mymaster down-after-milliseconds 5000 sentinel set mymaster failover-timeout 60000
The quorum number should be less than or equal to the total number of Sentinels monitoring the master.
If the quorum is too low, failover might happen too quickly and cause problems.
If the quorum is too high, failover might be delayed, causing downtime.
Sentinel quorum is the number of Sentinels that must agree a master is down before failover.
It helps keep your Redis system reliable and available.
Set quorum carefully based on how many Sentinels you have.