Add support for maxconn per server in haproxy configuration.

This commit is contained in:
abednarik 2016-06-17 17:18:48 -03:00 committed by George Robinson
parent 1b7e1794ef
commit 0a550b89b9

View file

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