当前位置:网站首页>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 sentinelThe 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
边栏推荐
猜你喜欢

Browser usage ratio js radar chart

【机器学习】用特征量重要度(feature importance)解释模型靠谱么?怎么才能算出更靠谱的重要度?

开放麒麟 openKylin 自动化开发者平台正式发布

零代码工具推荐 八爪鱼采集器

02 Truffle TutorialToken 示例

js department budget and expenditure radar chart

Flink1.15 source code reading - PER_JOB vs APPLICATION execution process

Come n times with the sword--05. Replace spaces

Chapter VII

安装gnome-screenshot截图工具
随机推荐
浓眉大眼的谷歌 Chrome 也叛变了,教你一招快速清除其自带广告
[ verb phrase ] collection
感情危机,朋友的网恋女友要和他闹分手,问我怎么办
Kotlin 优点
(C语言)程序环境和预处理
MySQL 的几种碎片整理方案总结(解决delete大量数据后空间不释放的问题)
loadrunner脚本--添加事务
Redis Sentinel原理
来n遍剑指--07. 重建二叉树
来n遍剑指--05. 替换空格
文件管理:目录管理
js空气质量aqi雷达图分析
【NLP】Transformer理论解读
二叉树的搜索与回溯问题(leetcode)
js部门预算和支出雷达图
JSP config对象的简介说明
loadrunner-Controller负载测试-各模块功能记录01测试场景设计
文件的逻辑结构与物理结构的对比与区别
【职场杂谈】售前工程师岗位的理解杂谈
loadrunner-controller-view script与load generator