redis/templates/sentinel.conf.j2
2021-11-10 12:28:32 +03:00

18 lines
580 B
Django/Jinja

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