Redis -- sentinel配置

sentinel.conf 配置如下:

port 26379
dir "/var/log/redis"
daemonize yes
logfile "/var/log/redis/sentinel-26379.log"
sentinel monitor mymaster 127.0.0.1 6381 2
sentinel down-after-milliseconds mymaster 10000

启动方式:

./src/redis-sentinel sentinel-26379.conf

更多参考:

Redis Sentinel机制与用法(一)
Redis Sentinel(哨兵)部署

猜你喜欢

转载自blog.csdn.net/u010926176/article/details/80979951