diff --git a/roles/float-infra-haproxy/templates/haproxy.cfg.j2 b/roles/float-infra-haproxy/templates/haproxy.cfg.j2 index 703e4b289cfbf5d8ca94075377780b0f47aea41a..735f533f18e60a3dbc33309fea7bfa503b00f643 100644 --- a/roles/float-infra-haproxy/templates/haproxy.cfg.j2 +++ b/roles/float-infra-haproxy/templates/haproxy.cfg.j2 @@ -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')