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
更多参考: