codecamp

Redis 单sentinel宕测试

恢复集群状态,2.128为主,2.129、2.130为从。 


此时,从2.128上看sentinel状态:

 


由于sentinel都是对等的,在此选择对2.128上的sentinel进行进程宕测试:

 

此时,本节点sentinel日志为:

 

其他节点sentinel日志为:

 

表示2.128上的sentnel已经宕。

 

此时集群读写正常,在一个sentinel宕机的基础上宕master后切换正常。


Redis 双从实例宕测试
Redis 双sentinel宕测试
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Redis 数据操作

Redis安全问题

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }