Verified Commit 378e5f1b authored by blallo's avatar blallo
Browse files

Allow custom options in haproxy config

parent 7bed9e3f
Pipeline #12969 passed with stage
in 3 minutes and 7 seconds
......@@ -33,8 +33,8 @@ backend be_{{ service_name }}_{{ ep.name }}_{{ port }}
log global
balance leastconn
option independant-streams
{% for s in groups[service_name]|sort %}
server task{{ loop.index -1 }} {{ s }}.{{ service_name }}.{{ domain }}:{{ port }} check fall 3 id {{ loop.index + 999 }} inter 5000 rise 3 slowstart 60000 weight 50
{% for s in groups[service_name]|sort %}
server task{{ loop.index -1 }} {{ s }}.{{ service_name }}.{{ domain }}:{{ port }} {{ service.get('haproxy_opts', '') }} check fall 3 id {{ loop.index + 999 }} inter 5000 rise 3 slowstart 60000 weight 50
{% endfor %}
{% endfor %} # ep.ports
......@@ -50,7 +50,7 @@ backend be_{{ service_name }}_{{ ep.name }}_{{ ep.port }}
balance leastconn
option independant-streams
{% for s in groups[service_name]|sort %}
server task{{ loop.index -1 }} {{ s }}.{{ service_name }}.{{ domain }}:{{ ep.port }} check fall 3 id {{ loop.index + 999 }} inter 5000 rise 3 slowstart 60000 weight 50
server task{{ loop.index -1 }} {{ s }}.{{ service_name }}.{{ domain }}:{{ ep.port }} {{ service.get('haproxy_opts', '') }} check fall 3 id {{ loop.index + 999 }} inter 5000 rise 3 slowstart 60000 weight 50
{% endfor %}
{% endif %} # ep.get('ports')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment