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 %}