centos 下Sentinel主从切换

来源:互联网 发布:linux cname怎么设置 编辑:程序博客网 时间:2024/06/03 17:04

1,增加配置文件sentinel.conf

##redis-0##sentinel实例之间的通讯端口port 26379sentinel monitor def_master 192.168.60.235 6379 1sentinel down-after-milliseconds def_master 5000sentinel failover-timeout def_master 900000#sentinel can-failover def_master yessentinel parallel-syncs def_master 2sentinel auth-pass def_master joeyondaemonize yeslogfile "/usr/local/redis-2.8.21/log/sentinel.log"


2,启动sentinel

[root@localhost redis-2.8.21]# ./bin/redis-sentinel  sentinel.conf


0 0
原创粉丝点击