redis哨兵模式主从自动切换

    Read

哨兵模式主要用于主从库异常检测,自动完成异常状态下的切换,演示下配置过程。
配置环境:

[root@Redis-01 ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@Redis-01 ~]# uname -a
Linux Redis-01 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxSourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

主库: 1.1.1.151 从库:1.1.1.152 SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

主从搭建:SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

主库状态:


从库状态:
SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

哨兵模式:SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

Redis启动脚本:

SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

参考文档
1:http://blog.csdn.net/u014756827/article/details/52383103
2:http://blog.csdn.net/a67474506/article/details/50435498SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/ SourceByrd's Weblog-https://note.t4x.org/basic/redis-sentinel-listen/

Today in History
April
30
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on April 30, 2019
  • 原文链接:https://note.t4x.org/basic/redis-sentinel-listen/