配置名 | 含义 | 默认值 | 可选值 | 可否支持 sentinel set 配置热生效 |
---|---|---|---|---|
sentinel monitor |
定义监控的 主节点、IP、port、主观下线票数 | sentinel monitor mymaster 127.0.0.1 6379 2 | 自定义 master-name 实际的 IP、端口 票数 | 支持 |
sentinel down-after-milliseconds |
sentinel 判定节点不可达的毫秒数 | sentinel down-after-milliseconds mymaster 30000 | 整数 | 支持 |
sentinel parallel-syncs |
在执行故障转移时,最多有多少个从服务器同时对新的主服务器进行同步 | sentinel parallel-syncs mymaster 1 | 大于 0,不超过从服务器个数 | 支持 |
sentinel failover-timeout |
故障迁移超时时间 | sentilel failover-timeout 180000 | 整数 | 支持 |
sentinel auth-pass |
主节点密码 | 空 | 主节点密码 | 支持 |
sentinel notifi-cation-script |
故障转移期间脚本通知 | 空 | 脚本文件路径 | 支持 |
sentinel client-reconfig-script |
故障转移成功后脚本通知 | 空 | 脚本文件路劲 | 支持 |