From dcaa119a17eaf7738a4d41599a3945bcaf95fc11 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Thu, 4 Apr 2024 18:17:30 +0200 Subject: [PATCH] updated haproxy state --- states/haproxy/templates/haproxy.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/states/haproxy/templates/haproxy.cfg.j2 b/states/haproxy/templates/haproxy.cfg.j2 index 9349d13..14087e8 100644 --- a/states/haproxy/templates/haproxy.cfg.j2 +++ b/states/haproxy/templates/haproxy.cfg.j2 @@ -299,7 +299,7 @@ backend {{ name }} from {{ haproxy.config.namespace }} {{ compression() }} {%- endif %} - default-server weight 100 inter 1s fall 5 + default-server weight 100 inter 1s fall 5 maxconn 100 {%- if values.internal|default(False) %} {{ internal() }} @@ -325,7 +325,7 @@ listen {{ name }} from {{ haproxy.config.namespace }} timeout server 1s option spop-check {%- endif %} - default-server weight 100 inter 1s fall 5 + default-server weight 100 inter 1s fall 5 maxconn 100 {{- tcpendpoints(servers=values.servers|default([]), check=values.check|default(haproxy.config.check)) }} {% endfor %}