#监控的sentinel
15857:X 21 Feb 2022 16:51:54.313 # +sdown master mymaster 127.0.0.1 6379
===> 哨兵监控到master不在线(在down-after-millsecnod没有有效的PING响应,有效的PING响应包括了PONG/LOADING/MASTERDOWN)
15857:X 21 Feb 2022 16:51:54.313 # +odown master mymaster 127.0.0.1 6379 #quorum 1/1
===> 发送消息要求其他哨兵确认下线, quorum为1,标记为客观下线
15857:X 21 Feb 2022 16:51:54.314 # +new-epoch 3
====> epoch纪元+1
15857:X 21 Feb 2022 16:51:54.314 # +try-failover master mymaster 127.0.0.1 6379
====>尝试进行失败转移
15857:X 21 Feb 2022 16:51:54.315 # +vote-for-leader d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
====>sentinel选举
15857:X 21 Feb 2022 16:51:54.319 # cf37d476bc5140eb76220ede83619bf7fa3143e7 voted for d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
====>c3投票给sentinel d4
15857:X 21 Feb 2022 16:51:54.319 # bf65ebc664402c2faca875f080e1e52fd2010688 voted for d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
====>bf投票给sentinel d4
====>投票过程: 如果epoch比自己大 && 没有给其他人投过票,投票给她
15857:X 21 Feb 2022 16:51:54.372 # +elected-leader master mymaster 127.0.0.1 6379
====>leader选举成果
15857:X 21 Feb 2022 16:51:54.372 # +failover-state-select-slave master mymaster 127.0.0.1 6379
====>选举slave
15857:X 21 Feb 2022 16:51:54.444 # +selected-slave slave 127.0.0.1:8379 127.0.0.1 8379 @ mymaster 127.0.0.1 6379
====>选择8379
15857:X 21 Feb 2022 16:51:54.444 * +failover-state-send-slaveof-noone slave 127.0.0.1:8379 127.0.0.1 8379 @ mymaster 127.0.0.1 6379
====>给8379发送 slave no one,关闭只读
15857:X 21 Feb 2022 16:51:54.535 * +failover-state-wait-promotion slave 127.0.0.1:8379 127.0.0.1 8379 @ mymaster 127.0.0.1 6379
====>等待8379晋升为master
15857:X 21 Feb 2022 16:51:55.254 # +promoted-slave slave 127.0.0.1:8379 127.0.0.1 8379 @ mymaster 127.0.0.1 6379
====>slave 8379晋升为master
15857:X 21 Feb 2022 16:51:55.254 # +failover-state-reconf-slaves master mymaster 127.0.0.1 6379
====>重置其他slave节点的主节点
15857:X 21 Feb 2022 16:51:55.312 * +slave-reconf-sent slave 127.0.0.1:7379 127.0.0.1 7379 @ mymaster 127.0.0.1 6379
15857:X 21 Feb 2022 16:51:55.513 * +slave-reconf-inprog slave 127.0.0.1:7379 127.0.0.1 7379 @ mymaster 127.0.0.1 6379
15857:X 21 Feb 2022 16:51:55.513 * +slave-reconf-done slave 127.0.0.1:7379 127.0.0.1 7379 @ mymaster 127.0.0.1 6379
15857:X 21 Feb 2022 16:51:55.589 # +failover-end master mymaster 127.0.0.1 6379
15857:X 21 Feb 2022 16:51:55.589 # +switch-master mymaster 127.0.0.1 6379 127.0.0.1 8379
15857:X 21 Feb 2022 16:51:55.589 * +slave slave 127.0.0.1:7379 127.0.0.1 7379 @ mymaster 127.0.0.1 8379
15857:X 21 Feb 2022 16:51:55.589 * +slave slave 127.0.0.1:6379 127.0.0.1 6379 @ mymaster 127.0.0.1 8379
15857:X 21 Feb 2022 16:52:25.615 # +sdown slave 127.0.0.1:6379 127.0.0.1 6379 @ mymaster 127.0.0.1 8379
#其他的sentinel
15859:X 21 Feb 2022 16:51:54.317 # +new-epoch 3
15859:X 21 Feb 2022 16:51:54.318 # +vote-for-leader d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
15859:X 21 Feb 2022 16:51:54.319 # +sdown master mymaster 127.0.0.1 6379
15859:X 21 Feb 2022 16:51:54.319 # +odown master mymaster 127.0.0.1 6379 #quorum 1/1
15859:X 21 Feb 2022 16:51:54.319 # Next failover delay: I will not start a failover before Mon Feb 21 16:57:55 2022
15859:X 21 Feb 2022 16:51:55.313 # +config-update-from sentinel d47b5dc1d048e08cd400115ead7407f276ac9dbc 127.0.0.1 26380 @ mymaster 127.0.0.1 6379
15859:X 21 Feb 2022 16:51:55.313 # +switch-master mymaster 127.0.0.1 6379 127.0.0.1 8379
15859:X 21 Feb 2022 16:51:55.313 * +slave slave 127.0.0.1:7379 127.0.0.1 7379 @ mymaster 127.0.0.1 8379
15859:X 21 Feb 2022 16:51:55.314 * +slave slave 127.0.0.1:6379 127.0.0.1 6379 @ mymaster 127.0.0.1 8379
15859:X 21 Feb 2022 16:52:25.366 # +sdown slave 127.0.0.1:6379 127.0.0.1 6379 @ mymaster 127.0.0.1 8379