当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
loadrunner-controller-view script与load generator
51单片机-----外部中断
二叉树的搜索与回溯问题(leetcode)
【Excel】生成随机数字/字符
OpenGL es 导读篇
第七章
djangoWeb应用框架+MySQL数据4
vue element form表单规则校验 点击提交后直接报数据库错误,没有显示错误信息
7. JS ES6新增语法 new Map详讲,还有一道代码实战案例帮你快上手new Map
Scala基础【seq、set、map、元组、WordCount、队列、并行】
js右侧圆点单页滚动介绍页面
qt pass custom structure parameters in different threads
JSP pagecontext对象的简介说明
Come n times - 09. Implement queues with two stacks
canvas粒子变幻各种形状js特效
Canvas particles change various shapes js special effects
ARC在编译和运行做了什么?
loadrunner-Controller负载测试-各模块功能记录01测试场景设计
内联元素居中
js实现2020年元旦倒计时公告牌








