redis/templates/sentinel.conf.j2

18 lines
580 B
Plaintext
Raw Normal View History

2021-11-10 09:28:32 +00:00
bind {{ ansible_default_ipv4.address }}
port 26379
daemonize yes
supervised auto
pidfile /run/sentinel/redis-sentinel.pid
logfile /var/log/redis/redis-sentinel.log
dir /var/lib/redis
sentinel monitor mymaster {{ redis_master_ip }} 6379 2
sentinel auth-pass mymaster {{ redis_masterauth }}
sentinel auth-user mymaster {{ redis_masteruser }}
sentinel down-after-milliseconds mymaster 30000
acllog-max-len 128
sentinel parallel-syncs mymaster 1
sentinel failover-timeout mymaster 180000
sentinel deny-scripts-reconfig yes
SENTINEL resolve-hostnames no
SENTINEL announce-hostnames no