Merge pull request #55 from abednarik/abednarik_maxconn_per_server
Add support for maxconn per server in haproxy configuration.
This commit is contained in:
commit
dfd7468718
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ listen {{ listener.get('name', listener_name) }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'servers' in listener %}
|
{%- if 'servers' in listener %}
|
||||||
{%- for server_name, server in listener.servers|dictsort %}
|
{%- 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 %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue