{% from "redis/map.jinja" import cluster with context %} | |
port 26379 | |
sentinel monitor master_1 {{ cluster.master.host }} {{ cluster.master.port }} {{ cluster.quorum }} | |
sentinel down-after-milliseconds master_1 5000 | |
sentinel failover-timeout master_1 60000 | |
sentinel config-epoch master_1 1 | |
{%- if cluster.enabled and cluster.get("password", None) %} | |
sentinel auth-pass master_1 {{ cluster.password }} | |
{%- endif %} | |