diff --git a/configs/haproxy/haproxy.cfg b/configs/haproxy/haproxy.cfg index fac512d..dfd31f4 100644 --- a/configs/haproxy/haproxy.cfg +++ b/configs/haproxy/haproxy.cfg @@ -4,7 +4,7 @@ global defaults mode tcp - timeout connect 10s + timeout connect 5s timeout client 1m timeout server 1m @@ -14,7 +14,8 @@ frontend clickhouse_front backend clickhouse_back balance roundrobin - server clickhouse1 click1:8123 check - server clickhouse2 click2:8123 check - server clickhouse3 click3:8123 check - server clickhouse4 click4:8123 check + # Быстрые проверки состояния: каждые 10 секунд, 2 неудачи = узел недоступен + server clickhouse1 click1:8123 check inter 10s fall 2 rise 2 + server clickhouse2 click2:8123 check inter 10s fall 2 rise 2 + server clickhouse3 click3:8123 check inter 10s fall 2 rise 2 + server clickhouse4 click4:8123 check inter 10s fall 2 rise 2