当前位置:网站首页>Principle of Redis Sentinel
Principle of Redis Sentinel
2022-07-31 09:33:00 【IT-Lao Niu】
First of all, the sentinel mode is a special mode, which is an implementation of Redis high availability.First of all, the sentinel is an independent process that can monitor, notify, and automatically failover the Redis instance.
Actually, each sentinel node performs heartbeat monitoring (including all redis instances and sentinel peers) through ping every second, and judges whether the node is online based on the reply.
If a sentinel thread finds that the main library does not respond to this PING
within the given time ( down-after-milliseconds
), then this sentinel
The code> thread thinks that the main library is unavailable, this situation is called "subjective failure" (ie SDOWN); this situation generally does not cause immediate failover automatically, but when multiple sentinel
threadsIt is indeed found that the main library is unavailable and exceeds the in the configuration item
(the gossip protocol is actually used here), generally the remaining sentinel monitor mymaster {#ip} {#port} {#number}
in sentinel.conf
#numbersentinel
threads will be responsible for the objective offline of the main library and automatic failover through the RAFT algorithm., this situation is called "objective failure" (ie ODOWN
).
The specific process is shown in the figure below:
SentinelMode configuration items
边栏推荐
猜你喜欢
js部门预算和支出雷达图
第二十二课,实例化(instancing)
【机器学习】用特征量重要度(feature importance)解释模型靠谱么?怎么才能算出更靠谱的重要度?
Rich text editor Tinymce
关于挂载EXfat文件格式U盘失败的问题
多个js雷达图同时显示
(selenium)Service geckodriver unexpectedly exited. Status code was: 64
优信年营收16亿:亏损3亿 已与蔚来资本及58集团签署股权协议
loadrunner-Controller负载测试-各模块功能记录01测试场景设计
Browser usage ratio js radar chart
随机推荐
湖仓一体电商项目(二):项目使用技术及版本和基础环境准备
HTC官方RUU固件提取刷机包rom.zip以及RUU解密教程
centos7安装mysql5.7
@RequestBody和@RequestParam区别
loadrunner-controller-view script与load generator
MySQL 的几种碎片整理方案总结(解决delete大量数据后空间不释放的问题)
js雷达图统计图表插件
安装gnome-screenshot截图工具
Chapter VII
js滚动条滚动到指定元素
JSP exception对象简介说明
Browser usage ratio js radar chart
js部门预算和支出雷达图
浏览器使用占比js雷达图
OpenGL es 导读篇
2022/7/30 考试总结
Redis Sentinel原理
loadrunner-controller-场景执行run
作为面试官,关于线程池的问题我一般这样套路...
自定义v-drag指令(横向拖拽滚动)