SENTINEL get-master-addr-by-name mymaster on a Redis Sentinel instance monitoring a master named mymaster. What is the expected output format?The SENTINEL get-master-addr-by-name command returns the IP and port of the master as an array of two elements. This helps clients connect to the current master.
The quorum setting ensures that a failover only happens if enough Sentinels agree the master is unreachable, preventing false failovers.
If quorum is higher than the number of Sentinels running, failover will never trigger because the required agreement can't be reached.
The failover process starts with detection, then quorum agreement, then slave promotion, and finally updating slaves to follow the new master.
Deploying an odd number of Sentinels across different machines and failure domains helps achieve reliable quorum and prevents split-brain.
