Multiple Sentinel instances help keep your Redis system safe and working well by watching over your Redis servers together.
Multiple Sentinel instances in Redis
sentinel monitor <master-name> <ip> <port> <quorum>
master-name is the name you give to your main Redis server.
quorum is how many Sentinels must agree before taking action.
sentinel monitor mymaster 127.0.0.1 6379 2
sentinel monitor mymaster 192.168.1.10 6379 3
This example shows three Sentinel instances all set to watch the same Redis master named 'mymaster' on localhost port 6379. They require at least 2 Sentinels to agree before failover.
# Start three Sentinel instances monitoring the same master sentinel monitor mymaster 127.0.0.1 6379 2 sentinel monitor mymaster 127.0.0.1 6380 2 sentinel monitor mymaster 127.0.0.1 6381 2
Run multiple Sentinel instances on different servers or ports to avoid a single point of failure.
All Sentinels must have the same configuration for the master they monitor.
The quorum number should be less than or equal to the number of Sentinel instances running.
Multiple Sentinel instances work together to keep Redis safe and available.
They watch the same Redis master and agree before switching to a backup.
Use a quorum to decide how many Sentinels must agree to act.