Merge "Fix redis sentinel change myid every time when it restarted"

This commit is contained in:
Zuul 2018-08-23 10:23:55 +00:00 committed by Gerrit Code Review
commit 6dd6fe8028

View File

@ -4,6 +4,7 @@ pidfile "/var/run/redis/redis-sentinel.pid"
logfile "/var/log/kolla/redis/redis-sentinel.log" logfile "/var/log/kolla/redis/redis-sentinel.log"
bind {{ api_interface_address }} bind {{ api_interface_address }}
port {{ redis_sentinel_port }} port {{ redis_sentinel_port }}
sentinel myid {{ inventory_hostname | hash('sha1') }}
sentinel monitor kolla {{ redis_master_address }} {{ redis_port }} 2 sentinel monitor kolla {{ redis_master_address }} {{ redis_port }} 2
sentinel auth-pass kolla {{ redis_master_password }} sentinel auth-pass kolla {{ redis_master_password }}
sentinel down-after-milliseconds kolla 5000 sentinel down-after-milliseconds kolla 5000