Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
float
Commits
378e5f1b
Verified
Commit
378e5f1b
authored
Mar 02, 2021
by
blallo
Browse files
Allow custom options in haproxy config
parent
7bed9e3f
Pipeline
#12969
passed with stage
in 3 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/float-infra-haproxy/templates/haproxy.cfg.j2
View file @
378e5f1b
...
...
@@ -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')
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment