1. #监控的sentinel
    2. 15857:X 21 Feb 2022 16:51:54.313 # +sdown master mymaster 127.0.0.1 6379
    3. ===> 哨兵监控到master不在线(在down-after-millsecnod没有有效的PING响应,有效的PING响应包括了PONG/LOADING/MASTERDOWN)
    4. 15857:X 21 Feb 2022 16:51:54.313 # +odown master mymaster 127.0.0.1 6379 #quorum 1/1
    5. ===> 发送消息要求其他哨兵确认下线, quorum1,标记为客观下线
    6. 15857:X 21 Feb 2022 16:51:54.314 # +new-epoch 3
    7. ====> epoch纪元+1
    8. 15857:X 21 Feb 2022 16:51:54.314 # +try-failover master mymaster 127.0.0.1 6379
    9. ====>尝试进行失败转移
    10. 15857:X 21 Feb 2022 16:51:54.315 # +vote-for-leader d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
    11. ====>sentinel选举
    12. 15857:X 21 Feb 2022 16:51:54.319 # cf37d476bc5140eb76220ede83619bf7fa3143e7 voted for d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
    13. ====>c3投票给sentinel d4
    14. 15857:X 21 Feb 2022 16:51:54.319 # bf65ebc664402c2faca875f080e1e52fd2010688 voted for d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
    15. ====>bf投票给sentinel d4
    16. ====>投票过程: 如果epoch比自己大 && 没有给其他人投过票,投票给她
    17. 15857:X 21 Feb 2022 16:51:54.372 # +elected-leader master mymaster 127.0.0.1 6379
    18. ====>leader选举成果
    19. 15857:X 21 Feb 2022 16:51:54.372 # +failover-state-select-slave master mymaster 127.0.0.1 6379
    20. ====>选举slave
    21. 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
    22. ====>选择8379
    23. 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
    24. ====>给8379发送 slave no one,关闭只读
    25. 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
    26. ====>等待8379晋升为master
    27. 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
    28. ====>slave 8379晋升为master
    29. 15857:X 21 Feb 2022 16:51:55.254 # +failover-state-reconf-slaves master mymaster 127.0.0.1 6379
    30. ====>重置其他slave节点的主节点
    31. 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
    32. 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
    33. 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
    34. 15857:X 21 Feb 2022 16:51:55.589 # +failover-end master mymaster 127.0.0.1 6379
    35. 15857:X 21 Feb 2022 16:51:55.589 # +switch-master mymaster 127.0.0.1 6379 127.0.0.1 8379
    36. 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
    37. 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
    38. 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
    39. #其他的sentinel
    40. 15859:X 21 Feb 2022 16:51:54.317 # +new-epoch 3
    41. 15859:X 21 Feb 2022 16:51:54.318 # +vote-for-leader d47b5dc1d048e08cd400115ead7407f276ac9dbc 3
    42. 15859:X 21 Feb 2022 16:51:54.319 # +sdown master mymaster 127.0.0.1 6379
    43. 15859:X 21 Feb 2022 16:51:54.319 # +odown master mymaster 127.0.0.1 6379 #quorum 1/1
    44. 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
    45. 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
    46. 15859:X 21 Feb 2022 16:51:55.313 # +switch-master mymaster 127.0.0.1 6379 127.0.0.1 8379
    47. 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
    48. 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
    49. 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