Skip to content

Update Redis.md #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions notes/Redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ def main():
## 十二、Sentinel

Sentinel(哨兵)可以监听集群中的服务器,并在主服务器进入下线状态时,自动从从服务器中选举出新的主服务器。
**监控(Monitoring)** 不间断检测Redis的运行状态
**提醒(Notification** 当监控的Redis出现问题时,通过API向管理员或者其他应用程序 发送通知
**监控(Monitoring)** 不间断检测Redis的运行状态.
**提醒(Notification** 当监控的Redis出现问题时,通过API向管理员或者其他应用程序 发送通知.
**自动故障迁移(Automatic failover** 当一个主服务器不能正常工作时, Sentinel 会开始一次自动故障迁移操作, 它会将失效主服务器的其中一个从服务器升级为新的主服务器, 并让失效主服务器的其他从服务器改为复制新的主服务器; 当客户端试图连接失效的主服务器时, 集群也会向客户端返回新主服务器的地址, 使得集群可以使用新主服务器代替失效服务器。
**协议** 流言协议(gossip protocols)来接收关于主服务器是否下线的信息, 并使用投票协议(agreement protocols)来决定是否执行自动故障迁移 。
Redis主从复制 搭建
Expand Down