From 370acae6b037278dbce9fcdb4ab753ffb3260fb5 Mon Sep 17 00:00:00 2001 From: HuaHero Date: Wed, 6 Dec 2023 16:07:05 +0800 Subject: [PATCH] Update Redis.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 格式调整 --- notes/Redis.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/Redis.md b/notes/Redis.md index b2021b0e..2108fae8 100644 --- a/notes/Redis.md +++ b/notes/Redis.md @@ -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主从复制 搭建