diff --git a/ansible/roles/redis/templates/redis-sentinel.conf.j2 b/ansible/roles/redis/templates/redis-sentinel.conf.j2 index 0e034e9a33788ecffd457c9df2f35e26f65c33d2..efe719b107bf998f901e57cd067e9809ded0fe83 100644 --- a/ansible/roles/redis/templates/redis-sentinel.conf.j2 +++ b/ansible/roles/redis/templates/redis-sentinel.conf.j2 @@ -4,6 +4,7 @@ pidfile "/var/run/redis/redis-sentinel.pid" logfile "/var/log/kolla/redis/redis-sentinel.log" bind {{ api_interface_address }} port {{ redis_sentinel_port }} +sentinel myid {{ inventory_hostname | hash('sha1') }} sentinel monitor kolla {{ redis_master_address }} {{ redis_port }} 2 sentinel auth-pass kolla {{ redis_master_password }} sentinel down-after-milliseconds kolla 5000