一、哨兵的概念

Redis学习(九) Sentinel哨兵

Redis学习(九) Sentinel哨兵

二、通过读取主服务器信息得到从服务器的信息,然后进行选举

Redis学习(九) Sentinel哨兵

监视,每1秒一次

Redis学习(九) Sentinel哨兵

与其他Sentine建立连接

Redis学习(九) Sentinel哨兵

监测Redis服务器下线

主观下线

Redis学习(九) Sentinel哨兵

Redis学习(九) Sentinel哨兵

客观下线

Redis学习(九) Sentinel哨兵

Redis学习(九) Sentinel哨兵

 

选举领头哨兵Sentinel(投票,获取票数最多的变成领头的哨兵)

Redis学习(九) Sentinel哨兵

选举新的Redis Master

Redis学习(九) Sentinel哨兵

重点回顾

Redis学习(九) Sentinel哨兵

相关文章: