I have set both sentinel quorum to one, master/sentinel is on one physical box, slave/sentinel is on the other physical one. When i sudo reboot the master (172.16.2.154) box, Here are the log from the slave (172.16.2.153).
[1510] 14 Feb 02:44:25.406 # Sentinel runid is 44d0bc3d3dc5dd7e9417c5d567344db8fbe298e8
[1510] 14 Feb 02:46:47.934 * +sentinel sentinel
172.16.2.154:26379 172.16.2.154 26379 @ mymaster 172.16.2.154 6379
[1510] 14 Feb 02:47:23.121 # +sdown master mymaster 172.16.2.154 6379
[1510] 14 Feb 02:47:23.121 # +odown master mymaster 172.16.2.154 6379 #quorum 1/1
[1510] 14 Feb 02:47:23.121 # +new-epoch 9
[1510] 14 Feb 02:47:23.121 # +try-failover master mymaster 172.16.2.154 6379
[1510] 14 Feb 02:47:23.121 # +vote-for-leader 44d0bc3d3dc5dd7e9417c5d567344db8fbe298e8 9
[1510] 14 Feb 02:47:33.201 # -failover-abort-not-elected master mymaster 172.16.2.154 6379
[1510] 14 Feb 02:47:36.302 # +sdown sentinel
172.16.2.154:26379 172.16.2.154 26379 @ mymaster 172.16.2.154 6379
[1510] 14 Feb 02:49:33.431 * +reboot master mymaster 172.16.2.154 6379
[1510] 14 Feb 02:49:33.493 * -dup-sentinel master mymaster 172.16.2.154 6379 #duplicate of
172.16.2.154:26379 or 5985170d841ec37c229aa209edd762e96ddb81a6
[1510] 14 Feb 02:49:33.493 * +sentinel sentinel
172.16.2.154:26379 172.16.2.154 26379 @ mymaster 172.16.2.154 6379
[1510] 14 Feb 02:49:33.578 # -sdown master mymaster 172.16.2.154 6379
[1510] 14 Feb 02:49:33.578 # -odown master mymaster 172.16.2.154 6379
[1510] 14 Feb 02:50:28.722 # +new-epoch 10
[1510] 14 Feb 02:50:28.722 # +vote-for-leader 5985170d841ec37c229aa209edd762e96ddb81a6 10
[1510] 14 Feb 02:50:30.680 # +switch-master mymaster 172.16.2.154 6379 172.16.2.153 6379
[1510] 14 Feb 02:50:30.680 * +slave slave
172.16.2.154:6379 172.16.2.154 6379 @ mymaster 172.16.2.153 6379
and I have the same configuration in another environment, which works fine. when I sudo reboot the master (172.16.2.152), here is the log from the slave (172.16.2.151), and you could see the election succeeded.
[1564] 07 Feb 09:59:11.013 # Sentinel runid is 69d2ccaa0d323e2ed6b8ccabacc875a8b50e12b0
[1564] 07 Feb 10:04:55.602 * -dup-sentinel master mymaster 172.16.2.152 6379 #duplicate of
172.16.2.152:26379 or d032886da3b0e46721debdd06e793e97a2b96c2c
[1564] 07 Feb 10:04:55.602 * +sentinel sentinel
172.16.2.152:26379 172.16.2.152 26379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.190 # +sdown master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.191 #
172.16.2.152:26379 voted for 69d2ccaa0d323e2ed6b8ccabacc875a8b50e12b0 11
[1564] 07 Feb 10:05:01.261 # +elected-leader master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.261 # +failover-state-select-slave master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.317 # +selected-slave slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.317 * +failover-state-send-slaveof-noone slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.393 * +failover-state-wait-promotion slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.236 # +promoted-slave slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.236 # +failover-state-reconf-slaves master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.317 # +failover-end master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.317 # +switch-master mymaster 172.16.2.152 6379 172.16.2.151 6379
[1564] 07 Feb 10:05:02.317 * +slave slave
172.16.2.152:6379 172.16.2.152 6379 @ mymaster 172.16.2.151 6379
[1564] 07 Feb 10:05:01.190 # +odown master mymaster 172.16.2.152 6379 #quorum 1/1
[1564] 07 Feb 10:05:01.190 # +new-epoch 11
[1564] 07 Feb 10:05:01.190 # +try-failover master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.190 # +vote-for-leader 69d2ccaa0d323e2ed6b8ccabacc875a8b50e12b0 11
[1564] 07 Feb 10:05:01.191 #
172.16.2.152:26379 voted for 69d2ccaa0d323e2ed6b8ccabacc875a8b50e12b0 11
[1564] 07 Feb 10:05:01.261 # +elected-leader master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.261 # +failover-state-select-slave master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.317 # +selected-slave slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.317 * +failover-state-send-slaveof-noone slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:01.393 * +failover-state-wait-promotion slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.236 # +promoted-slave slave
172.16.2.151:6379 172.16.2.151 6379 @ mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.236 # +failover-state-reconf-slaves master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.317 # +failover-end master mymaster 172.16.2.152 6379
[1564] 07 Feb 10:05:02.317 # +switch-master mymaster 172.16.2.152 6379 172.16.2.151 6379
[1564] 07 Feb 10:05:02.317 * +slave slave
172.16.2.152:6379 172.16.2.152 6379 @ mymaster 172.16.2.151 6379
I was wondering how they could behave differently as I have configured them the same way for redis and sentinel.