Complete the code to specify the quorum number in Redis Sentinel configuration.
sentinel monitor mymaster 127.0.0.1 6379 [1]
The quorum value defines how many Sentinels need to agree before a failover is initiated. Usually, 3 is a common quorum number.
Complete the command to check the quorum value for a monitored master in Redis Sentinel.
SENTINEL quorum [1]The SENTINEL quorum <mastername> command returns the quorum value for the specified master.
Fix the error in the Sentinel configuration line to correctly set quorum to 2.
sentinel monitor mymaster 127.0.0.1 6379 [1]
The quorum must be a numeric integer value without quotes or prefixes.
Fill both blanks to complete the Sentinel failover timeout and parallel sync settings.
sentinel failover-timeout mymaster [1] sentinel parallel-syncs mymaster [2]
Failover timeout is usually set in milliseconds (e.g., 180000 ms = 3 minutes). Parallel syncs is the number of replicas synced at once, often 1.
Fill all three blanks to complete the Sentinel configuration for down-after-milliseconds, failover timeout, and quorum.
sentinel down-after-milliseconds mymaster [1] sentinel failover-timeout mymaster [2] sentinel monitor mymaster 127.0.0.1 6379 [3]
Down-after-milliseconds is the time to consider a master down (e.g., 10000 ms). Failover timeout is the max time for failover (e.g., 180000 ms). Quorum is the number of Sentinels needed to agree (e.g., 2).