sentinel2.conf 322 B

12345678
  1. port 26379
  2. dir /tmp
  3. # 监控主节点,名称为 mymaster,2 表示至少需要 2 个哨兵同意才能进行故障转移
  4. sentinel monitor mymaster 192.168.0.211 6379 2
  5. # 主节点失联 5s 则认为下线
  6. sentinel down-after-milliseconds mymaster 5000
  7. # 故障转移超时时间
  8. sentinel failover-timeout mymaster 10000