redis 哨兵配置文件解读sentinel.conf
# Example sentinel.conf
# port <sentinel-port>
port 8001
# 守护进程模式
daemonize yes
# 指明日志文件名
logfile "./sentinel1.log"
# 工作路径,sentinel一般指定/tmp比较简单
dir ./
# 哨兵监控这个master,在至少quorum个哨兵实例都认为master down后把master标记为odown
# (objective down客观down;相对应的存在sdown,subjective down,主观down)状态。
# slaves是自动发现,所以你没必要明确指定slaves。
sentinel monitor MyMaster 127.0.0.1 7001 1
# master或slave多长时间(默认30秒)不能使用后标记为s_down状态。
sentinel down-after-milliseconds MyMaster 1500
# 若sentinel在该配置值内未能完成failover操作(即故障时master/slave自动切换),则认为本次failover失败。
sentinel failover-timeout TestMaster 10000
# 设置master和slaves验证密码
sentinel auth-pass TestMaster testmaster123
sentinel config-epoch TestMaster 15
#除了当前哨兵, 还有哪些在监控这个master的哨兵
sentinel known-sentinel TestMaster 127.0.0.1 8002 0aca3a57038e2907c8a07be2b3c0d15171e44da5
sentinel known-sentinel TestMaster 127.0.0.1 8003 ac1ef015411583d4b9f3d81cee830060b2f29862
Redis注意事项:
1.最大内存问题:要设置好最大内存,以防不停的申请内存,造成系统内存都被用完。
2.Fork进程问题:'vm.overcommit_memory = 1'这一个选项要加到系统的配置中,防止fork因内存不足而失败。
3.密码问题:需要设置复杂一些,防止暴力破解。
转载于:https://www.cnblogs.com/Su-per-man/p/11534126.html
- Redis高可用方案哨兵机制------ 配置文件sentinel.conf详解
- Redis学习笔记--Redis配置文件Sentinel.conf参数配置详解
- Redis配置文件redis.conf参数解读
- redis 配置文件 redis.conf解读
- Redis配置文件 redis.conf 解读(一)
- Redis配置文件redis.conf参数解读
- Redis配置文件redis.conf参数解读
- redis3.2 最新版本启动配置文件redis.conf详细说明
- windows 64系统安装Redis,.conf配置文件各字段含义
- redis的哨兵(sentinel)配置和python程序应用示例
- Redis配置文件redis.conf 详解
- Redis 讲解系列之 Redis配置文件解读
- redis配置文件redis.conf的详细说明
- redis3.2 最新版本启动配置文件redis.conf详细说明
- redis配置文件 redis.conf
- redis配置文件redis.conf参数说明
- redis配置文件redis.conf参数说明
- Redis 3.2.x版本 redis.conf 的配置文件参数详解
- redis 的redis.conf配置文件说明
- redis配置文件redis.conf的详细说明