Merge pull request #31 from HuaHero/HuaHero-patch-29

Update Redis.md
This commit is contained in:
HuaHero 2023-12-06 15:42:33 +08:00 committed by GitHub
commit 72c34cfbad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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