From 533f275d08632bb93f197637201288dbbb1a6c40 Mon Sep 17 00:00:00 2001 From: abednarik Date: Fri, 17 Jun 2016 17:18:48 -0300 Subject: [PATCH] Add support for maxconn per server in haproxy configuration. --- haproxy/templates/haproxy.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index 827f356..2411b4f 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -346,7 +346,7 @@ listen {{ listener.get('name', listener_name) }} {%- endif %} {%- if 'servers' in listener %} {%- for server_name, server in listener.servers|dictsort %} - server {{ server.get('name', server_name) }} {{ server.host }}{% if 'port' in server %}:{{ server.port }}{% endif %} {{ server.get('check', '') }} {{ server.get('extra', '') }} + server {{ server.get('name', server_name) }} {{ server.host }}{% if 'port' in server %}:{{ server.port }}{% endif %} {% if 'maxconn' in server %} maxconn {{ server.maxconn }}{% endif %} {{ server.get('check', '') }} {{ server.get('extra', '') }} {%- endfor %} {%- endif %} {% endfor %}