Merge ~hloeung/content-cache-charm:log into content-cache-charm:master

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: 3bd2938698a7bdad5ada38ac84c635108749fc43
Merged at revision: 3fcb042a6fa949de6f11419b0c61e454c9ed7d11
Proposed branch: ~hloeung/content-cache-charm:log
Merge into: content-cache-charm:master
Diff against target: 1640 lines (+527/-252)
15 files modified
lib/haproxy.py (+15/-9)
reactive/content_cache.py (+0/-1)
tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+76/-38)
tests/unit/files/content_cache_rendered_haproxy_test_output2.txt (+8/-4)
tests/unit/files/content_cache_rendered_haproxy_test_output3.txt (+8/-4)
tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt (+76/-38)
tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt (+12/-6)
tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt (+76/-38)
tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt (+76/-38)
tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt (+76/-38)
tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt (+8/-4)
tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt (+31/-11)
tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output2.txt (+3/-1)
tests/unit/files/haproxy_config_rendered_test_output.txt (+31/-11)
tests/unit/files/haproxy_config_rendered_test_output2.txt (+31/-11)
Reviewer Review Type Date Requested Status
Colin Misare Approve
Canonical IS Reviewers Pending
Review via email: mp+397703@code.launchpad.net

Commit message

Use 'http-check send hdr' instead of adding headers at end of httpchk version

To post a comment you must log in.
Revision history for this message
Canonical IS Mergebot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Colin Misare (cmisare) wrote :

LGTM

review: Approve
Revision history for this message
Canonical IS Mergebot (canonical-is-mergebot) wrote :

Change successfully merged at revision 3fcb042a6fa949de6f11419b0c61e454c9ed7d11

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/haproxy.py b/lib/haproxy.py
index 597131e..d9836a7 100644
--- a/lib/haproxy.py
+++ b/lib/haproxy.py
@@ -222,9 +222,9 @@ listen {name}
222 def render_stanza_backend(self, config): # NOQA: C901222 def render_stanza_backend(self, config): # NOQA: C901
223 backend_stanza = """223 backend_stanza = """
224backend backend-{name}224backend backend-{name}
225{indent}{httpchk}225{indent}http-request set-header Host {site_name}
226{options}{indent}http-request set-header Host {site_name}226{httpchk}
227{indent}balance {load_balancing_algorithm}227{options}{indent}balance {load_balancing_algorithm}
228{backends}228{backends}
229"""229"""
230 rendered_output = []230 rendered_output = []
@@ -318,17 +318,23 @@ backend backend-{name}
318 if opts:318 if opts:
319 options = '\n'.join(opts + [''])319 options = '\n'.join(opts + [''])
320320
321 httpchk = (321 httpchk = []
322 r"option httpchk {method} {path} HTTP/1.0\r\n"322 # Add X-Cache-Request-IP for caching layer to log real client IP.
323 r"Host:\ {site_name}\r\n"323 if backend_name.startswith('cached-'):
324 r"User-Agent:\ haproxy/httpchk"324 httpchk.append('{indent}http-request set-header X-Cache-Request-IP %[src]'.format(indent=INDENT))
325 ).format(method=method, path=path, site_name=site_name)325 httpchk.append(
326 '{indent}http-check send hdr Host {site_name}'.format(site_name=site_name, indent=INDENT)
327 )
328 httpchk.append('{indent}http-check send hdr User-Agent haproxy/httpchk'.format(indent=INDENT))
329 httpchk.append(
330 '{indent}option httpchk {method} {path} HTTP/1.0'.format(method=method, path=path, indent=INDENT)
331 )
326332
327 output = backend_stanza.format(333 output = backend_stanza.format(
328 name=backend_name,334 name=backend_name,
329 site=site,335 site=site,
330 site_name=site_name,336 site_name=site_name,
331 httpchk=httpchk,337 httpchk='\n'.join(httpchk),
332 load_balancing_algorithm=self.load_balancing_algorithm,338 load_balancing_algorithm=self.load_balancing_algorithm,
333 backends='\n'.join(backend_confs),339 backends='\n'.join(backend_confs),
334 options=options,340 options=options,
diff --git a/reactive/content_cache.py b/reactive/content_cache.py
index 9f95727..eeb24fe 100644
--- a/reactive/content_cache.py
+++ b/reactive/content_cache.py
@@ -281,7 +281,6 @@ def configure_haproxy(): # NOQA: C901 LP#1825084
281 # Also, for caching layer, we want higher fall count as it's less281 # Also, for caching layer, we want higher fall count as it's less
282 # likely the caching layer is down, 2 mins here (inter * fall).282 # likely the caching layer is down, 2 mins here (inter * fall).
283 new_cached_loc_conf['backend-fall-count'] = 60283 new_cached_loc_conf['backend-fall-count'] = 60
284 new_cached_loc_conf['backend-options'] = ['http-request set-header X-Cache-Request-IP %[src]']
285284
286 # No backends285 # No backends
287 if not site_conf['locations'][location].get('backends'):286 if not site_conf['locations'][location].get('backends'):
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output.txt
index 2e20fd6..71b7714 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output.txt
@@ -155,142 +155,180 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local158 http-request set-header Host site1.local
159 http-request set-header X-Cache-Request-IP %[src]
160 http-check send hdr Host site1.local
161 http-check send hdr User-Agent haproxy/httpchk
162 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
161 balance leastconn163 balance leastconn
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600164 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163165
164backend backend-site1-local166backend backend-site1-local
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
166 option redispatch 1
167 http-request set-header Host site1.local167 http-request set-header Host site1.local
168 http-check send hdr Host site1.local
169 http-check send hdr User-Agent haproxy/httpchk
170 option httpchk HEAD / HTTP/1.0
171 option redispatch 1
168 balance leastconn172 balance leastconn
169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200173 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
170 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200174 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200175 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
172176
173backend backend-cached-site2-local177backend backend-cached-site2-local
174 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
175 http-request set-header X-Cache-Request-IP %[src]
176 http-request set-header Host site2.local178 http-request set-header Host site2.local
179 http-request set-header X-Cache-Request-IP %[src]
180 http-check send hdr Host site2.local
181 http-check send hdr User-Agent haproxy/httpchk
182 option httpchk GET /check/ HTTP/1.0
177 balance leastconn183 balance leastconn
178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072184 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
179185
180backend backend-site2-local186backend backend-site2-local
181 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 option redispatch 1
183 http-request set-header Host site2.local187 http-request set-header Host site2.local
188 http-check send hdr Host site2.local
189 http-check send hdr User-Agent haproxy/httpchk
190 option httpchk GET /check/ HTTP/1.0
191 option redispatch 1
184 balance leastconn192 balance leastconn
185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt193 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
186 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt194 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt195 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188196
189backend backend-cached-site3-local197backend backend-cached-site3-local
190 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
191 http-request set-header X-Cache-Request-IP %[src]
192 http-request set-header Host site3.local198 http-request set-header Host site3.local
199 http-request set-header X-Cache-Request-IP %[src]
200 http-check send hdr Host site3.local
201 http-check send hdr User-Agent haproxy/httpchk
202 option httpchk HEAD / HTTP/1.0
193 balance leastconn203 balance leastconn
194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096204 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
195205
196backend backend-site3-local206backend backend-site3-local
197 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk207 http-request set-header Host site3.local
208 http-check send hdr Host site3.local
209 http-check send hdr User-Agent haproxy/httpchk
210 option httpchk HEAD / HTTP/1.0
198 option forwardfor except 127.0.0.1 192.168.1.1211 option forwardfor except 127.0.0.1 192.168.1.1
199 option forceclose212 option forceclose
200 option redispatch 1213 option redispatch 1
201 http-request set-header Host site3.local
202 balance leastconn214 balance leastconn
203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200215 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
204 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200216 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200217 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
206218
207backend backend-cached-site4-local219backend backend-cached-site4-local
208 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
209 http-request set-header X-Cache-Request-IP %[src]
210 http-request set-header Host site4.local220 http-request set-header Host site4.local
221 http-request set-header X-Cache-Request-IP %[src]
222 http-check send hdr Host site4.local
223 http-check send hdr User-Agent haproxy/httpchk
224 option httpchk HEAD / HTTP/1.0
211 balance leastconn225 balance leastconn
212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200226 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
213227
214backend backend-cached-site5228backend backend-cached-site5
215 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
216 http-request set-header X-Cache-Request-IP %[src]
217 http-request set-header Host site5.local229 http-request set-header Host site5.local
230 http-request set-header X-Cache-Request-IP %[src]
231 http-check send hdr Host site5.local
232 http-check send hdr User-Agent haproxy/httpchk
233 option httpchk HEAD / HTTP/1.0
218 balance leastconn234 balance leastconn
219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200235 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
220236
221backend backend-site5237backend backend-site5
222 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
223 option redispatch 1
224 http-request set-header Host site5.local238 http-request set-header Host site5.local
239 http-check send hdr Host site5.local
240 http-check send hdr User-Agent haproxy/httpchk
241 option httpchk HEAD / HTTP/1.0
242 option redispatch 1
225 balance leastconn243 balance leastconn
226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200244 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
227245
228backend backend-site5-2246backend backend-site5-2
229 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
230 option redispatch 1
231 http-request set-header Host site5.local247 http-request set-header Host site5.local
248 http-check send hdr Host site5.local
249 http-check send hdr User-Agent haproxy/httpchk
250 option httpchk HEAD / HTTP/1.0
251 option redispatch 1
232 balance leastconn252 balance leastconn
233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200253 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
234254
235backend backend-cached-site6-local255backend backend-cached-site6-local
236 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
237 http-request set-header X-Cache-Request-IP %[src]
238 http-request set-header Host site6.local256 http-request set-header Host site6.local
257 http-request set-header X-Cache-Request-IP %[src]
258 http-check send hdr Host site6.local
259 http-check send hdr User-Agent haproxy/httpchk
260 option httpchk HEAD / HTTP/1.0
239 balance leastconn261 balance leastconn
240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200262 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
241263
242backend backend-site6-local264backend backend-site6-local
243 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
244 option redispatch 1
245 http-request set-header Host site6.local265 http-request set-header Host site6.local
266 http-check send hdr Host site6.local
267 http-check send hdr User-Agent haproxy/httpchk
268 option httpchk HEAD / HTTP/1.0
269 option redispatch 1
246 balance leastconn270 balance leastconn
247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt271 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
248272
249backend backend-cached-site7-local273backend backend-cached-site7-local
250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header X-Cache-Request-IP %[src]
252 http-request set-header Host site7.local274 http-request set-header Host site7.local
275 http-request set-header X-Cache-Request-IP %[src]
276 http-check send hdr Host site7.local
277 http-check send hdr User-Agent haproxy/httpchk
278 option httpchk HEAD / HTTP/1.0
253 balance leastconn279 balance leastconn
254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200280 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
255281
256backend backend-site7-local282backend backend-site7-local
257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
258 option redispatch 1
259 http-request set-header Host site7.local283 http-request set-header Host site7.local
284 http-check send hdr Host site7.local
285 http-check send hdr User-Agent haproxy/httpchk
286 option httpchk HEAD / HTTP/1.0
287 option redispatch 1
260 balance leastconn288 balance leastconn
261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200289 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
262290
263backend backend-cached-site8-local291backend backend-cached-site8-local
264 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
265 http-request set-header X-Cache-Request-IP %[src]
266 http-request set-header Host site8.local292 http-request set-header Host site8.local
293 http-request set-header X-Cache-Request-IP %[src]
294 http-check send hdr Host site8.local
295 http-check send hdr User-Agent haproxy/httpchk
296 option httpchk HEAD / HTTP/1.0
267 balance leastconn297 balance leastconn
268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200298 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
269299
270backend backend-site8-local300backend backend-site8-local
271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 option redispatch 1
273 http-request set-header Host site8.local301 http-request set-header Host site8.local
302 http-check send hdr Host site8.local
303 http-check send hdr User-Agent haproxy/httpchk
304 option httpchk HEAD / HTTP/1.0
305 option redispatch 1
274 balance leastconn306 balance leastconn
275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200307 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
276308
277backend backend-site8-local-2309backend backend-site8-local-2
278 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
279 option redispatch 1
280 http-request set-header Host auth.site8.local310 http-request set-header Host auth.site8.local
311 http-check send hdr Host auth.site8.local
312 http-check send hdr User-Agent haproxy/httpchk
313 option httpchk HEAD / HTTP/1.0
314 option redispatch 1
281 balance leastconn315 balance leastconn
282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt316 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
283317
284backend backend-cached-site9-local318backend backend-cached-site9-local
285 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
286 http-request set-header X-Cache-Request-IP %[src]
287 http-request set-header Host site9.local319 http-request set-header Host site9.local
320 http-request set-header X-Cache-Request-IP %[src]
321 http-check send hdr Host site9.local
322 http-check send hdr User-Agent haproxy/httpchk
323 option httpchk HEAD / HTTP/1.0
288 balance leastconn324 balance leastconn
289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200325 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
290326
291backend backend-site9-local327backend backend-site9-local
292 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
293 option redispatch 1
294 http-request set-header Host site9.local328 http-request set-header Host site9.local
329 http-check send hdr Host site9.local
330 http-check send hdr User-Agent haproxy/httpchk
331 option httpchk HEAD / HTTP/1.0
332 option redispatch 1
295 balance leastconn333 balance leastconn
296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200334 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt
index 5f6824b..846b16d 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt
@@ -90,16 +90,20 @@ listen site1-local
90 default_backend backend-site1-local90 default_backend backend-site1-local
9191
92backend backend-cached-site1-local92backend backend-cached-site1-local
93 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
94 http-request set-header X-Cache-Request-IP %[src]
95 http-request set-header Host site1.local93 http-request set-header Host site1.local
94 http-request set-header X-Cache-Request-IP %[src]
95 http-check send hdr Host site1.local
96 http-check send hdr User-Agent haproxy/httpchk
97 option httpchk HEAD / HTTP/1.0
96 balance leastconn98 balance leastconn
97 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 20099 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 200
98100
99backend backend-site1-local101backend backend-site1-local
100 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk102 http-request set-header Host site1.local
103 http-check send hdr Host site1.local
104 http-check send hdr User-Agent haproxy/httpchk
105 option httpchk HEAD / HTTP/1.0
101 retries 3106 retries 3
102 option redispatch 1107 option redispatch 1
103 http-request set-header Host site1.local
104 balance leastconn108 balance leastconn
105 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200109 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt
index 83641cc..37a6665 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt
@@ -96,15 +96,19 @@ listen site1-local
96 default_backend backend-site1-local96 default_backend backend-site1-local
9797
98backend backend-cached-site1-local98backend backend-cached-site1-local
99 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
100 http-request set-header X-Cache-Request-IP %[src]
101 http-request set-header Host site1.local99 http-request set-header Host site1.local
100 http-request set-header X-Cache-Request-IP %[src]
101 http-check send hdr Host site1.local
102 http-check send hdr User-Agent haproxy/httpchk
103 option httpchk HEAD / HTTP/1.0
102 balance leastconn104 balance leastconn
103 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 200105 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 200
104106
105backend backend-site1-local107backend backend-site1-local
106 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
107 option redispatch 1
108 http-request set-header Host site1.local108 http-request set-header Host site1.local
109 http-check send hdr Host site1.local
110 http-check send hdr User-Agent haproxy/httpchk
111 option httpchk HEAD / HTTP/1.0
112 option redispatch 1
109 balance leastconn113 balance leastconn
110 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200114 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt
index e417ae8..5ae5568 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt
@@ -155,142 +155,180 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local158 http-request set-header Host site1.local
159 http-request set-header X-Cache-Request-IP %[src]
160 http-check send hdr Host site1.local
161 http-check send hdr User-Agent haproxy/httpchk
162 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
161 balance leastconn163 balance leastconn
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600164 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163165
164backend backend-site1-local166backend backend-site1-local
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
166 option redispatch 1
167 http-request set-header Host site1.local167 http-request set-header Host site1.local
168 http-check send hdr Host site1.local
169 http-check send hdr User-Agent haproxy/httpchk
170 option httpchk HEAD / HTTP/1.0
171 option redispatch 1
168 balance leastconn172 balance leastconn
169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200173 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
170 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200174 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200175 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
172176
173backend backend-cached-site2-local177backend backend-cached-site2-local
174 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
175 http-request set-header X-Cache-Request-IP %[src]
176 http-request set-header Host site2.local178 http-request set-header Host site2.local
179 http-request set-header X-Cache-Request-IP %[src]
180 http-check send hdr Host site2.local
181 http-check send hdr User-Agent haproxy/httpchk
182 option httpchk GET /check/ HTTP/1.0
177 balance leastconn183 balance leastconn
178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072184 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
179185
180backend backend-site2-local186backend backend-site2-local
181 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 option redispatch 1
183 http-request set-header Host site2.local187 http-request set-header Host site2.local
188 http-check send hdr Host site2.local
189 http-check send hdr User-Agent haproxy/httpchk
190 option httpchk GET /check/ HTTP/1.0
191 option redispatch 1
184 balance leastconn192 balance leastconn
185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt193 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
186 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt194 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt195 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188196
189backend backend-cached-site3-local197backend backend-cached-site3-local
190 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
191 http-request set-header X-Cache-Request-IP %[src]
192 http-request set-header Host site3.local198 http-request set-header Host site3.local
199 http-request set-header X-Cache-Request-IP %[src]
200 http-check send hdr Host site3.local
201 http-check send hdr User-Agent haproxy/httpchk
202 option httpchk HEAD / HTTP/1.0
193 balance leastconn203 balance leastconn
194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096204 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
195205
196backend backend-site3-local206backend backend-site3-local
197 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk207 http-request set-header Host site3.local
208 http-check send hdr Host site3.local
209 http-check send hdr User-Agent haproxy/httpchk
210 option httpchk HEAD / HTTP/1.0
198 option forwardfor except 127.0.0.1 192.168.1.1211 option forwardfor except 127.0.0.1 192.168.1.1
199 option forceclose212 option forceclose
200 option redispatch 1213 option redispatch 1
201 http-request set-header Host site3.local
202 balance leastconn214 balance leastconn
203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200215 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
204 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200216 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200217 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
206218
207backend backend-cached-site4-local219backend backend-cached-site4-local
208 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
209 http-request set-header X-Cache-Request-IP %[src]
210 http-request set-header Host site4.local220 http-request set-header Host site4.local
221 http-request set-header X-Cache-Request-IP %[src]
222 http-check send hdr Host site4.local
223 http-check send hdr User-Agent haproxy/httpchk
224 option httpchk HEAD / HTTP/1.0
211 balance leastconn225 balance leastconn
212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200226 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
213227
214backend backend-cached-site5228backend backend-cached-site5
215 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
216 http-request set-header X-Cache-Request-IP %[src]
217 http-request set-header Host site5.local229 http-request set-header Host site5.local
230 http-request set-header X-Cache-Request-IP %[src]
231 http-check send hdr Host site5.local
232 http-check send hdr User-Agent haproxy/httpchk
233 option httpchk HEAD / HTTP/1.0
218 balance leastconn234 balance leastconn
219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200235 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
220236
221backend backend-site5237backend backend-site5
222 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
223 option redispatch 1
224 http-request set-header Host site5.local238 http-request set-header Host site5.local
239 http-check send hdr Host site5.local
240 http-check send hdr User-Agent haproxy/httpchk
241 option httpchk HEAD / HTTP/1.0
242 option redispatch 1
225 balance leastconn243 balance leastconn
226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200244 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
227245
228backend backend-site5-2246backend backend-site5-2
229 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
230 option redispatch 1
231 http-request set-header Host site5.local247 http-request set-header Host site5.local
248 http-check send hdr Host site5.local
249 http-check send hdr User-Agent haproxy/httpchk
250 option httpchk HEAD / HTTP/1.0
251 option redispatch 1
232 balance leastconn252 balance leastconn
233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200253 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
234254
235backend backend-cached-site6-local255backend backend-cached-site6-local
236 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
237 http-request set-header X-Cache-Request-IP %[src]
238 http-request set-header Host site6.local256 http-request set-header Host site6.local
257 http-request set-header X-Cache-Request-IP %[src]
258 http-check send hdr Host site6.local
259 http-check send hdr User-Agent haproxy/httpchk
260 option httpchk HEAD / HTTP/1.0
239 balance leastconn261 balance leastconn
240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200262 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
241263
242backend backend-site6-local264backend backend-site6-local
243 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
244 option redispatch 1
245 http-request set-header Host site6.local265 http-request set-header Host site6.local
266 http-check send hdr Host site6.local
267 http-check send hdr User-Agent haproxy/httpchk
268 option httpchk HEAD / HTTP/1.0
269 option redispatch 1
246 balance leastconn270 balance leastconn
247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt271 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
248272
249backend backend-cached-site7-local273backend backend-cached-site7-local
250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header X-Cache-Request-IP %[src]
252 http-request set-header Host site7.local274 http-request set-header Host site7.local
275 http-request set-header X-Cache-Request-IP %[src]
276 http-check send hdr Host site7.local
277 http-check send hdr User-Agent haproxy/httpchk
278 option httpchk HEAD / HTTP/1.0
253 balance leastconn279 balance leastconn
254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200280 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
255281
256backend backend-site7-local282backend backend-site7-local
257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
258 option redispatch 1
259 http-request set-header Host site7.local283 http-request set-header Host site7.local
284 http-check send hdr Host site7.local
285 http-check send hdr User-Agent haproxy/httpchk
286 option httpchk HEAD / HTTP/1.0
287 option redispatch 1
260 balance leastconn288 balance leastconn
261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200289 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
262290
263backend backend-cached-site8-local291backend backend-cached-site8-local
264 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
265 http-request set-header X-Cache-Request-IP %[src]
266 http-request set-header Host site8.local292 http-request set-header Host site8.local
293 http-request set-header X-Cache-Request-IP %[src]
294 http-check send hdr Host site8.local
295 http-check send hdr User-Agent haproxy/httpchk
296 option httpchk HEAD / HTTP/1.0
267 balance leastconn297 balance leastconn
268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200298 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
269299
270backend backend-site8-local300backend backend-site8-local
271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 option redispatch 1
273 http-request set-header Host site8.local301 http-request set-header Host site8.local
302 http-check send hdr Host site8.local
303 http-check send hdr User-Agent haproxy/httpchk
304 option httpchk HEAD / HTTP/1.0
305 option redispatch 1
274 balance leastconn306 balance leastconn
275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200307 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
276308
277backend backend-site8-local-2309backend backend-site8-local-2
278 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
279 option redispatch 1
280 http-request set-header Host auth.site8.local310 http-request set-header Host auth.site8.local
311 http-check send hdr Host auth.site8.local
312 http-check send hdr User-Agent haproxy/httpchk
313 option httpchk HEAD / HTTP/1.0
314 option redispatch 1
281 balance leastconn315 balance leastconn
282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt316 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
283317
284backend backend-cached-site9-local318backend backend-cached-site9-local
285 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
286 http-request set-header X-Cache-Request-IP %[src]
287 http-request set-header Host site9.local319 http-request set-header Host site9.local
320 http-request set-header X-Cache-Request-IP %[src]
321 http-check send hdr Host site9.local
322 http-check send hdr User-Agent haproxy/httpchk
323 option httpchk HEAD / HTTP/1.0
288 balance leastconn324 balance leastconn
289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200325 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
290326
291backend backend-site9-local327backend backend-site9-local
292 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
293 option redispatch 1
294 http-request set-header Host site9.local328 http-request set-header Host site9.local
329 http-check send hdr Host site9.local
330 http-check send hdr User-Agent haproxy/httpchk
331 option httpchk HEAD / HTTP/1.0
332 option redispatch 1
295 balance leastconn333 balance leastconn
296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200334 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt
index 3a80145..1248506 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt
@@ -95,25 +95,31 @@ listen site1-local-2
95 default_backend backend-site1-local-295 default_backend backend-site1-local-2
9696
97backend backend-cached-site1-local97backend backend-cached-site1-local
98 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
99 http-request set-header X-Cache-Request-IP %[src]
100 http-request set-header Host site1.local98 http-request set-header Host site1.local
99 http-request set-header X-Cache-Request-IP %[src]
100 http-check send hdr Host site1.local
101 http-check send hdr User-Agent haproxy/httpchk
102 option httpchk HEAD / HTTP/1.0
101 balance leastconn103 balance leastconn
102 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 400104 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 400
103105
104backend backend-site1-local106backend backend-site1-local
105 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk107 http-request set-header Host site1.local
108 http-check send hdr Host site1.local
109 http-check send hdr User-Agent haproxy/httpchk
110 option httpchk HEAD / HTTP/1.0
106 option allbackups111 option allbackups
107 option redispatch 1112 option redispatch 1
108 http-request set-header Host site1.local
109 balance leastconn113 balance leastconn
110 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200114 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
111 server server_2 192.168.1.2:8080 backup check inter 5s rise 2 fall 5 maxconn 200115 server server_2 192.168.1.2:8080 backup check inter 5s rise 2 fall 5 maxconn 200
112116
113backend backend-site1-local-2117backend backend-site1-local-2
114 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
115 option redispatch 1
116 http-request set-header Host site1.local118 http-request set-header Host site1.local
119 http-check send hdr Host site1.local
120 http-check send hdr User-Agent haproxy/httpchk
121 option httpchk HEAD / HTTP/1.0
122 option redispatch 1
117 balance leastconn123 balance leastconn
118 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200124 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
119 server server_2 192.168.1.2:8080 check inter 5s rise 2 fall 5 maxconn 200125 server server_2 192.168.1.2:8080 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt
index 0d34d81..6a2c85a 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt
@@ -155,142 +155,180 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local158 http-request set-header Host site1.local
159 http-request set-header X-Cache-Request-IP %[src]
160 http-check send hdr Host site1.local
161 http-check send hdr User-Agent haproxy/httpchk
162 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
161 balance roundrobin163 balance roundrobin
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600164 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163165
164backend backend-site1-local166backend backend-site1-local
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
166 option redispatch 1
167 http-request set-header Host site1.local167 http-request set-header Host site1.local
168 http-check send hdr Host site1.local
169 http-check send hdr User-Agent haproxy/httpchk
170 option httpchk HEAD / HTTP/1.0
171 option redispatch 1
168 balance roundrobin172 balance roundrobin
169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200173 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
170 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200174 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200175 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
172176
173backend backend-cached-site2-local177backend backend-cached-site2-local
174 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
175 http-request set-header X-Cache-Request-IP %[src]
176 http-request set-header Host site2.local178 http-request set-header Host site2.local
179 http-request set-header X-Cache-Request-IP %[src]
180 http-check send hdr Host site2.local
181 http-check send hdr User-Agent haproxy/httpchk
182 option httpchk GET /check/ HTTP/1.0
177 balance roundrobin183 balance roundrobin
178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072184 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
179185
180backend backend-site2-local186backend backend-site2-local
181 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 option redispatch 1
183 http-request set-header Host site2.local187 http-request set-header Host site2.local
188 http-check send hdr Host site2.local
189 http-check send hdr User-Agent haproxy/httpchk
190 option httpchk GET /check/ HTTP/1.0
191 option redispatch 1
184 balance roundrobin192 balance roundrobin
185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt193 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
186 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt194 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt195 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188196
189backend backend-cached-site3-local197backend backend-cached-site3-local
190 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
191 http-request set-header X-Cache-Request-IP %[src]
192 http-request set-header Host site3.local198 http-request set-header Host site3.local
199 http-request set-header X-Cache-Request-IP %[src]
200 http-check send hdr Host site3.local
201 http-check send hdr User-Agent haproxy/httpchk
202 option httpchk HEAD / HTTP/1.0
193 balance roundrobin203 balance roundrobin
194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096204 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
195205
196backend backend-site3-local206backend backend-site3-local
197 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk207 http-request set-header Host site3.local
208 http-check send hdr Host site3.local
209 http-check send hdr User-Agent haproxy/httpchk
210 option httpchk HEAD / HTTP/1.0
198 option forwardfor except 127.0.0.1 192.168.1.1211 option forwardfor except 127.0.0.1 192.168.1.1
199 option forceclose212 option forceclose
200 option redispatch 1213 option redispatch 1
201 http-request set-header Host site3.local
202 balance roundrobin214 balance roundrobin
203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200215 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
204 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200216 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200217 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
206218
207backend backend-cached-site4-local219backend backend-cached-site4-local
208 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
209 http-request set-header X-Cache-Request-IP %[src]
210 http-request set-header Host site4.local220 http-request set-header Host site4.local
221 http-request set-header X-Cache-Request-IP %[src]
222 http-check send hdr Host site4.local
223 http-check send hdr User-Agent haproxy/httpchk
224 option httpchk HEAD / HTTP/1.0
211 balance roundrobin225 balance roundrobin
212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200226 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
213227
214backend backend-cached-site5228backend backend-cached-site5
215 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
216 http-request set-header X-Cache-Request-IP %[src]
217 http-request set-header Host site5.local229 http-request set-header Host site5.local
230 http-request set-header X-Cache-Request-IP %[src]
231 http-check send hdr Host site5.local
232 http-check send hdr User-Agent haproxy/httpchk
233 option httpchk HEAD / HTTP/1.0
218 balance roundrobin234 balance roundrobin
219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200235 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
220236
221backend backend-site5237backend backend-site5
222 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
223 option redispatch 1
224 http-request set-header Host site5.local238 http-request set-header Host site5.local
239 http-check send hdr Host site5.local
240 http-check send hdr User-Agent haproxy/httpchk
241 option httpchk HEAD / HTTP/1.0
242 option redispatch 1
225 balance roundrobin243 balance roundrobin
226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200244 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
227245
228backend backend-site5-2246backend backend-site5-2
229 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
230 option redispatch 1
231 http-request set-header Host site5.local247 http-request set-header Host site5.local
248 http-check send hdr Host site5.local
249 http-check send hdr User-Agent haproxy/httpchk
250 option httpchk HEAD / HTTP/1.0
251 option redispatch 1
232 balance roundrobin252 balance roundrobin
233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200253 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
234254
235backend backend-cached-site6-local255backend backend-cached-site6-local
236 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
237 http-request set-header X-Cache-Request-IP %[src]
238 http-request set-header Host site6.local256 http-request set-header Host site6.local
257 http-request set-header X-Cache-Request-IP %[src]
258 http-check send hdr Host site6.local
259 http-check send hdr User-Agent haproxy/httpchk
260 option httpchk HEAD / HTTP/1.0
239 balance roundrobin261 balance roundrobin
240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200262 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
241263
242backend backend-site6-local264backend backend-site6-local
243 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
244 option redispatch 1
245 http-request set-header Host site6.local265 http-request set-header Host site6.local
266 http-check send hdr Host site6.local
267 http-check send hdr User-Agent haproxy/httpchk
268 option httpchk HEAD / HTTP/1.0
269 option redispatch 1
246 balance roundrobin270 balance roundrobin
247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt271 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
248272
249backend backend-cached-site7-local273backend backend-cached-site7-local
250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header X-Cache-Request-IP %[src]
252 http-request set-header Host site7.local274 http-request set-header Host site7.local
275 http-request set-header X-Cache-Request-IP %[src]
276 http-check send hdr Host site7.local
277 http-check send hdr User-Agent haproxy/httpchk
278 option httpchk HEAD / HTTP/1.0
253 balance roundrobin279 balance roundrobin
254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200280 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
255281
256backend backend-site7-local282backend backend-site7-local
257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
258 option redispatch 1
259 http-request set-header Host site7.local283 http-request set-header Host site7.local
284 http-check send hdr Host site7.local
285 http-check send hdr User-Agent haproxy/httpchk
286 option httpchk HEAD / HTTP/1.0
287 option redispatch 1
260 balance roundrobin288 balance roundrobin
261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200289 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
262290
263backend backend-cached-site8-local291backend backend-cached-site8-local
264 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
265 http-request set-header X-Cache-Request-IP %[src]
266 http-request set-header Host site8.local292 http-request set-header Host site8.local
293 http-request set-header X-Cache-Request-IP %[src]
294 http-check send hdr Host site8.local
295 http-check send hdr User-Agent haproxy/httpchk
296 option httpchk HEAD / HTTP/1.0
267 balance roundrobin297 balance roundrobin
268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200298 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
269299
270backend backend-site8-local300backend backend-site8-local
271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 option redispatch 1
273 http-request set-header Host site8.local301 http-request set-header Host site8.local
302 http-check send hdr Host site8.local
303 http-check send hdr User-Agent haproxy/httpchk
304 option httpchk HEAD / HTTP/1.0
305 option redispatch 1
274 balance roundrobin306 balance roundrobin
275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200307 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
276308
277backend backend-site8-local-2309backend backend-site8-local-2
278 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
279 option redispatch 1
280 http-request set-header Host auth.site8.local310 http-request set-header Host auth.site8.local
311 http-check send hdr Host auth.site8.local
312 http-check send hdr User-Agent haproxy/httpchk
313 option httpchk HEAD / HTTP/1.0
314 option redispatch 1
281 balance roundrobin315 balance roundrobin
282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt316 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
283317
284backend backend-cached-site9-local318backend backend-cached-site9-local
285 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
286 http-request set-header X-Cache-Request-IP %[src]
287 http-request set-header Host site9.local319 http-request set-header Host site9.local
320 http-request set-header X-Cache-Request-IP %[src]
321 http-check send hdr Host site9.local
322 http-check send hdr User-Agent haproxy/httpchk
323 option httpchk HEAD / HTTP/1.0
288 balance roundrobin324 balance roundrobin
289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200325 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
290326
291backend backend-site9-local327backend backend-site9-local
292 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
293 option redispatch 1
294 http-request set-header Host site9.local328 http-request set-header Host site9.local
329 http-check send hdr Host site9.local
330 http-check send hdr User-Agent haproxy/httpchk
331 option httpchk HEAD / HTTP/1.0
332 option redispatch 1
295 balance roundrobin333 balance roundrobin
296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200334 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt
index 5e49b0f..557a128 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt
@@ -156,142 +156,180 @@ listen site9-local
156 default_backend backend-site9-local156 default_backend backend-site9-local
157157
158backend backend-cached-site1-local158backend backend-cached-site1-local
159 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
160 http-request set-header X-Cache-Request-IP %[src]
161 http-request set-header Host site1.local159 http-request set-header Host site1.local
160 http-request set-header X-Cache-Request-IP %[src]
161 http-check send hdr Host site1.local
162 http-check send hdr User-Agent haproxy/httpchk
163 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
162 balance leastconn164 balance leastconn
163 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600165 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
164166
165backend backend-site1-local167backend backend-site1-local
166 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
167 option redispatch 1
168 http-request set-header Host site1.local168 http-request set-header Host site1.local
169 http-check send hdr Host site1.local
170 http-check send hdr User-Agent haproxy/httpchk
171 option httpchk HEAD / HTTP/1.0
172 option redispatch 1
169 balance leastconn173 balance leastconn
170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200174 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
171 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200175 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
172 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200176 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
173177
174backend backend-cached-site2-local178backend backend-cached-site2-local
175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
176 http-request set-header X-Cache-Request-IP %[src]
177 http-request set-header Host site2.local179 http-request set-header Host site2.local
180 http-request set-header X-Cache-Request-IP %[src]
181 http-check send hdr Host site2.local
182 http-check send hdr User-Agent haproxy/httpchk
183 option httpchk GET /check/ HTTP/1.0
178 balance leastconn184 balance leastconn
179 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072185 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
180186
181backend backend-site2-local187backend backend-site2-local
182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
183 option redispatch 1
184 http-request set-header Host site2.local188 http-request set-header Host site2.local
189 http-check send hdr Host site2.local
190 http-check send hdr User-Agent haproxy/httpchk
191 option httpchk GET /check/ HTTP/1.0
192 option redispatch 1
185 balance leastconn193 balance leastconn
186 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt194 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
187 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt195 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt196 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
189197
190backend backend-cached-site3-local198backend backend-cached-site3-local
191 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
192 http-request set-header X-Cache-Request-IP %[src]
193 http-request set-header Host site3.local199 http-request set-header Host site3.local
200 http-request set-header X-Cache-Request-IP %[src]
201 http-check send hdr Host site3.local
202 http-check send hdr User-Agent haproxy/httpchk
203 option httpchk HEAD / HTTP/1.0
194 balance leastconn204 balance leastconn
195 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096205 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
196206
197backend backend-site3-local207backend backend-site3-local
198 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk208 http-request set-header Host site3.local
209 http-check send hdr Host site3.local
210 http-check send hdr User-Agent haproxy/httpchk
211 option httpchk HEAD / HTTP/1.0
199 option forwardfor except 127.0.0.1 192.168.1.1212 option forwardfor except 127.0.0.1 192.168.1.1
200 option forceclose213 option forceclose
201 option redispatch 1214 option redispatch 1
202 http-request set-header Host site3.local
203 balance leastconn215 balance leastconn
204 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200216 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
205 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200217 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
206 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200218 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
207219
208backend backend-cached-site4-local220backend backend-cached-site4-local
209 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
210 http-request set-header X-Cache-Request-IP %[src]
211 http-request set-header Host site4.local221 http-request set-header Host site4.local
222 http-request set-header X-Cache-Request-IP %[src]
223 http-check send hdr Host site4.local
224 http-check send hdr User-Agent haproxy/httpchk
225 option httpchk HEAD / HTTP/1.0
212 balance leastconn226 balance leastconn
213 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200227 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
214228
215backend backend-cached-site5229backend backend-cached-site5
216 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
217 http-request set-header X-Cache-Request-IP %[src]
218 http-request set-header Host site5.local230 http-request set-header Host site5.local
231 http-request set-header X-Cache-Request-IP %[src]
232 http-check send hdr Host site5.local
233 http-check send hdr User-Agent haproxy/httpchk
234 option httpchk HEAD / HTTP/1.0
219 balance leastconn235 balance leastconn
220 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200236 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
221237
222backend backend-site5238backend backend-site5
223 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
224 option redispatch 1
225 http-request set-header Host site5.local239 http-request set-header Host site5.local
240 http-check send hdr Host site5.local
241 http-check send hdr User-Agent haproxy/httpchk
242 option httpchk HEAD / HTTP/1.0
243 option redispatch 1
226 balance leastconn244 balance leastconn
227 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200245 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
228246
229backend backend-site5-2247backend backend-site5-2
230 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
231 option redispatch 1
232 http-request set-header Host site5.local248 http-request set-header Host site5.local
249 http-check send hdr Host site5.local
250 http-check send hdr User-Agent haproxy/httpchk
251 option httpchk HEAD / HTTP/1.0
252 option redispatch 1
233 balance leastconn253 balance leastconn
234 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200254 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
235255
236backend backend-cached-site6-local256backend backend-cached-site6-local
237 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
238 http-request set-header X-Cache-Request-IP %[src]
239 http-request set-header Host site6.local257 http-request set-header Host site6.local
258 http-request set-header X-Cache-Request-IP %[src]
259 http-check send hdr Host site6.local
260 http-check send hdr User-Agent haproxy/httpchk
261 option httpchk HEAD / HTTP/1.0
240 balance leastconn262 balance leastconn
241 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200263 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
242264
243backend backend-site6-local265backend backend-site6-local
244 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
245 option redispatch 1
246 http-request set-header Host site6.local266 http-request set-header Host site6.local
267 http-check send hdr Host site6.local
268 http-check send hdr User-Agent haproxy/httpchk
269 option httpchk HEAD / HTTP/1.0
270 option redispatch 1
247 balance leastconn271 balance leastconn
248 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt272 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
249273
250backend backend-cached-site7-local274backend backend-cached-site7-local
251 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
252 http-request set-header X-Cache-Request-IP %[src]
253 http-request set-header Host site7.local275 http-request set-header Host site7.local
276 http-request set-header X-Cache-Request-IP %[src]
277 http-check send hdr Host site7.local
278 http-check send hdr User-Agent haproxy/httpchk
279 option httpchk HEAD / HTTP/1.0
254 balance leastconn280 balance leastconn
255 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200281 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
256282
257backend backend-site7-local283backend backend-site7-local
258 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
259 option redispatch 1
260 http-request set-header Host site7.local284 http-request set-header Host site7.local
285 http-check send hdr Host site7.local
286 http-check send hdr User-Agent haproxy/httpchk
287 option httpchk HEAD / HTTP/1.0
288 option redispatch 1
261 balance leastconn289 balance leastconn
262 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200290 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
263291
264backend backend-cached-site8-local292backend backend-cached-site8-local
265 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
266 http-request set-header X-Cache-Request-IP %[src]
267 http-request set-header Host site8.local293 http-request set-header Host site8.local
294 http-request set-header X-Cache-Request-IP %[src]
295 http-check send hdr Host site8.local
296 http-check send hdr User-Agent haproxy/httpchk
297 option httpchk HEAD / HTTP/1.0
268 balance leastconn298 balance leastconn
269 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200299 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
270300
271backend backend-site8-local301backend backend-site8-local
272 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
273 option redispatch 1
274 http-request set-header Host site8.local302 http-request set-header Host site8.local
303 http-check send hdr Host site8.local
304 http-check send hdr User-Agent haproxy/httpchk
305 option httpchk HEAD / HTTP/1.0
306 option redispatch 1
275 balance leastconn307 balance leastconn
276 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200308 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
277309
278backend backend-site8-local-2310backend backend-site8-local-2
279 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
280 option redispatch 1
281 http-request set-header Host auth.site8.local311 http-request set-header Host auth.site8.local
312 http-check send hdr Host auth.site8.local
313 http-check send hdr User-Agent haproxy/httpchk
314 option httpchk HEAD / HTTP/1.0
315 option redispatch 1
282 balance leastconn316 balance leastconn
283 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt317 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
284318
285backend backend-cached-site9-local319backend backend-cached-site9-local
286 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
287 http-request set-header X-Cache-Request-IP %[src]
288 http-request set-header Host site9.local320 http-request set-header Host site9.local
321 http-request set-header X-Cache-Request-IP %[src]
322 http-check send hdr Host site9.local
323 http-check send hdr User-Agent haproxy/httpchk
324 option httpchk HEAD / HTTP/1.0
289 balance leastconn325 balance leastconn
290 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200326 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
291327
292backend backend-site9-local328backend backend-site9-local
293 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
294 option redispatch 1
295 http-request set-header Host site9.local329 http-request set-header Host site9.local
330 http-check send hdr Host site9.local
331 http-check send hdr User-Agent haproxy/httpchk
332 option httpchk HEAD / HTTP/1.0
333 option redispatch 1
296 balance leastconn334 balance leastconn
297 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200335 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt
index 8cdfd8d..f232c44 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt
@@ -155,152 +155,190 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local158 http-request set-header Host site1.local
159 http-request set-header X-Cache-Request-IP %[src]
160 http-check send hdr Host site1.local
161 http-check send hdr User-Agent haproxy/httpchk
162 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
161 balance leastconn163 balance leastconn
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600164 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163165
164backend backend-site1-local166backend backend-site1-local
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk167 http-request set-header Host site1.local
168 http-check send hdr Host site1.local
169 http-check send hdr User-Agent haproxy/httpchk
170 option httpchk HEAD / HTTP/1.0
166 retry-on all-retryable-errors171 retry-on all-retryable-errors
167 option redispatch 1172 option redispatch 1
168 http-request set-header Host site1.local
169 balance leastconn173 balance leastconn
170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200174 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
171 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200175 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
172 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200176 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
173177
174backend backend-cached-site2-local178backend backend-cached-site2-local
175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
176 http-request set-header X-Cache-Request-IP %[src]
177 http-request set-header Host site2.local179 http-request set-header Host site2.local
180 http-request set-header X-Cache-Request-IP %[src]
181 http-check send hdr Host site2.local
182 http-check send hdr User-Agent haproxy/httpchk
183 option httpchk GET /check/ HTTP/1.0
178 balance leastconn184 balance leastconn
179 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072185 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
180186
181backend backend-site2-local187backend backend-site2-local
182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk188 http-request set-header Host site2.local
189 http-check send hdr Host site2.local
190 http-check send hdr User-Agent haproxy/httpchk
191 option httpchk GET /check/ HTTP/1.0
183 retry-on all-retryable-errors192 retry-on all-retryable-errors
184 option redispatch 1193 option redispatch 1
185 http-request set-header Host site2.local
186 balance leastconn194 balance leastconn
187 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt195 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt196 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
189 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt197 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
190198
191backend backend-cached-site3-local199backend backend-cached-site3-local
192 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
193 http-request set-header X-Cache-Request-IP %[src]
194 http-request set-header Host site3.local200 http-request set-header Host site3.local
201 http-request set-header X-Cache-Request-IP %[src]
202 http-check send hdr Host site3.local
203 http-check send hdr User-Agent haproxy/httpchk
204 option httpchk HEAD / HTTP/1.0
195 balance leastconn205 balance leastconn
196 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096206 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
197207
198backend backend-site3-local208backend backend-site3-local
199 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk209 http-request set-header Host site3.local
210 http-check send hdr Host site3.local
211 http-check send hdr User-Agent haproxy/httpchk
212 option httpchk HEAD / HTTP/1.0
200 option forwardfor except 127.0.0.1 192.168.1.1213 option forwardfor except 127.0.0.1 192.168.1.1
201 option forceclose214 option forceclose
202 retry-on all-retryable-errors215 retry-on all-retryable-errors
203 option redispatch 1216 option redispatch 1
204 http-request set-header Host site3.local
205 balance leastconn217 balance leastconn
206 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200218 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
207 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200219 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
208 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200220 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
209221
210backend backend-cached-site4-local222backend backend-cached-site4-local
211 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
212 http-request set-header X-Cache-Request-IP %[src]
213 http-request set-header Host site4.local223 http-request set-header Host site4.local
224 http-request set-header X-Cache-Request-IP %[src]
225 http-check send hdr Host site4.local
226 http-check send hdr User-Agent haproxy/httpchk
227 option httpchk HEAD / HTTP/1.0
214 balance leastconn228 balance leastconn
215 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200229 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
216230
217backend backend-cached-site5231backend backend-cached-site5
218 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
219 http-request set-header X-Cache-Request-IP %[src]
220 http-request set-header Host site5.local232 http-request set-header Host site5.local
233 http-request set-header X-Cache-Request-IP %[src]
234 http-check send hdr Host site5.local
235 http-check send hdr User-Agent haproxy/httpchk
236 option httpchk HEAD / HTTP/1.0
221 balance leastconn237 balance leastconn
222 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200238 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
223239
224backend backend-site5240backend backend-site5
225 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk241 http-request set-header Host site5.local
242 http-check send hdr Host site5.local
243 http-check send hdr User-Agent haproxy/httpchk
244 option httpchk HEAD / HTTP/1.0
226 retry-on all-retryable-errors245 retry-on all-retryable-errors
227 option redispatch 1246 option redispatch 1
228 http-request set-header Host site5.local
229 balance leastconn247 balance leastconn
230 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200248 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
231249
232backend backend-site5-2250backend backend-site5-2
233 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk251 http-request set-header Host site5.local
252 http-check send hdr Host site5.local
253 http-check send hdr User-Agent haproxy/httpchk
254 option httpchk HEAD / HTTP/1.0
234 retry-on all-retryable-errors255 retry-on all-retryable-errors
235 option redispatch 1256 option redispatch 1
236 http-request set-header Host site5.local
237 balance leastconn257 balance leastconn
238 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200258 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
239259
240backend backend-cached-site6-local260backend backend-cached-site6-local
241 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
242 http-request set-header X-Cache-Request-IP %[src]
243 http-request set-header Host site6.local261 http-request set-header Host site6.local
262 http-request set-header X-Cache-Request-IP %[src]
263 http-check send hdr Host site6.local
264 http-check send hdr User-Agent haproxy/httpchk
265 option httpchk HEAD / HTTP/1.0
244 balance leastconn266 balance leastconn
245 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200267 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
246268
247backend backend-site6-local269backend backend-site6-local
248 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk270 http-request set-header Host site6.local
271 http-check send hdr Host site6.local
272 http-check send hdr User-Agent haproxy/httpchk
273 option httpchk HEAD / HTTP/1.0
249 retry-on all-retryable-errors274 retry-on all-retryable-errors
250 option redispatch 1275 option redispatch 1
251 http-request set-header Host site6.local
252 balance leastconn276 balance leastconn
253 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt277 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
254278
255backend backend-cached-site7-local279backend backend-cached-site7-local
256 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
257 http-request set-header X-Cache-Request-IP %[src]
258 http-request set-header Host site7.local280 http-request set-header Host site7.local
281 http-request set-header X-Cache-Request-IP %[src]
282 http-check send hdr Host site7.local
283 http-check send hdr User-Agent haproxy/httpchk
284 option httpchk HEAD / HTTP/1.0
259 balance leastconn285 balance leastconn
260 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200286 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
261287
262backend backend-site7-local288backend backend-site7-local
263 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk289 http-request set-header Host site7.local
290 http-check send hdr Host site7.local
291 http-check send hdr User-Agent haproxy/httpchk
292 option httpchk HEAD / HTTP/1.0
264 retry-on all-retryable-errors293 retry-on all-retryable-errors
265 option redispatch 1294 option redispatch 1
266 http-request set-header Host site7.local
267 balance leastconn295 balance leastconn
268 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200296 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
269297
270backend backend-cached-site8-local298backend backend-cached-site8-local
271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 http-request set-header X-Cache-Request-IP %[src]
273 http-request set-header Host site8.local299 http-request set-header Host site8.local
300 http-request set-header X-Cache-Request-IP %[src]
301 http-check send hdr Host site8.local
302 http-check send hdr User-Agent haproxy/httpchk
303 option httpchk HEAD / HTTP/1.0
274 balance leastconn304 balance leastconn
275 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200305 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
276306
277backend backend-site8-local307backend backend-site8-local
278 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk308 http-request set-header Host site8.local
309 http-check send hdr Host site8.local
310 http-check send hdr User-Agent haproxy/httpchk
311 option httpchk HEAD / HTTP/1.0
279 retry-on all-retryable-errors312 retry-on all-retryable-errors
280 option redispatch 1313 option redispatch 1
281 http-request set-header Host site8.local
282 balance leastconn314 balance leastconn
283 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200315 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
284316
285backend backend-site8-local-2317backend backend-site8-local-2
286 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk318 http-request set-header Host auth.site8.local
319 http-check send hdr Host auth.site8.local
320 http-check send hdr User-Agent haproxy/httpchk
321 option httpchk HEAD / HTTP/1.0
287 retry-on all-retryable-errors322 retry-on all-retryable-errors
288 option redispatch 1323 option redispatch 1
289 http-request set-header Host auth.site8.local
290 balance leastconn324 balance leastconn
291 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt325 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
292326
293backend backend-cached-site9-local327backend backend-cached-site9-local
294 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
295 http-request set-header X-Cache-Request-IP %[src]
296 http-request set-header Host site9.local328 http-request set-header Host site9.local
329 http-request set-header X-Cache-Request-IP %[src]
330 http-check send hdr Host site9.local
331 http-check send hdr User-Agent haproxy/httpchk
332 option httpchk HEAD / HTTP/1.0
297 balance leastconn333 balance leastconn
298 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200334 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
299335
300backend backend-site9-local336backend backend-site9-local
301 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk337 http-request set-header Host site9.local
338 http-check send hdr Host site9.local
339 http-check send hdr User-Agent haproxy/httpchk
340 option httpchk HEAD / HTTP/1.0
302 retry-on all-retryable-errors341 retry-on all-retryable-errors
303 option redispatch 1342 option redispatch 1
304 http-request set-header Host site9.local
305 balance leastconn343 balance leastconn
306 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200344 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt
index 150724d..d25cb73 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt
@@ -90,16 +90,20 @@ listen site1-local
90 default_backend backend-site1-local90 default_backend backend-site1-local
9191
92backend backend-cached-site1-local92backend backend-cached-site1-local
93 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
94 http-request set-header X-Cache-Request-IP %[src]
95 http-request set-header Host site1.local93 http-request set-header Host site1.local
94 http-request set-header X-Cache-Request-IP %[src]
95 http-check send hdr Host site1.local
96 http-check send hdr User-Agent haproxy/httpchk
97 option httpchk HEAD / HTTP/1.0
96 balance leastconn98 balance leastconn
97 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 40099 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 400
98100
99backend backend-site1-local101backend backend-site1-local
100 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
101 option redispatch 1
102 http-request set-header Host site1.local102 http-request set-header Host site1.local
103 http-check send hdr Host site1.local
104 http-check send hdr User-Agent haproxy/httpchk
105 option httpchk HEAD / HTTP/1.0
106 option redispatch 1
103 balance leastconn107 balance leastconn
104 server-template server_1_ 2 _http._tcp.us.archive.ubuntu.com:80 resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200108 server-template server_1_ 2 _http._tcp.us.archive.ubuntu.com:80 resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200
105 server-template server_2_ 2 _http._tcp.gb.archive.ubuntu.com:80 backup resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200109 server-template server_2_ 2 _http._tcp.gb.archive.ubuntu.com:80 backup resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt
index ea47e02..0e56720 100644
--- a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt
+++ b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt
@@ -1,68 +1,88 @@
11
2backend backend-site1-local2backend backend-site1-local
3 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
4 http-request set-header Host site1.local3 http-request set-header Host site1.local
4 http-check send hdr Host site1.local
5 http-check send hdr User-Agent haproxy/httpchk
6 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
5 balance leastconn7 balance leastconn
6 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 2008 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
7 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 2009 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
8 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 20010 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
911
10backend backend-site2-local12backend backend-site2-local
11 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
12 http-request set-header Host site2.local13 http-request set-header Host site2.local
14 http-check send hdr Host site2.local
15 http-check send hdr User-Agent haproxy/httpchk
16 option httpchk GET /check/ HTTP/1.0
13 balance leastconn17 balance leastconn
14 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt18 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
15 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt19 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
16 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt20 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
1721
18backend backend-site3-local22backend backend-site3-local
19 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk23 http-request set-header Host site3.local
24 http-check send hdr Host site3.local
25 http-check send hdr User-Agent haproxy/httpchk
26 option httpchk HEAD / HTTP/1.0
20 option forwardfor except 127.0.0.1 192.168.1.127 option forwardfor except 127.0.0.1 192.168.1.1
21 option forceclose28 option forceclose
22 http-request set-header Host site3.local
23 balance leastconn29 balance leastconn
24 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 20030 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
25 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 20031 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
26 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 20032 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
2733
28backend backend-site534backend backend-site5
29 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
30 http-request set-header Host site5.local35 http-request set-header Host site5.local
36 http-check send hdr Host site5.local
37 http-check send hdr User-Agent haproxy/httpchk
38 option httpchk HEAD / HTTP/1.0
31 balance leastconn39 balance leastconn
32 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 20040 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
3341
34backend backend-site5-242backend backend-site5-2
35 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
36 http-request set-header Host site5.local43 http-request set-header Host site5.local
44 http-check send hdr Host site5.local
45 http-check send hdr User-Agent haproxy/httpchk
46 option httpchk HEAD / HTTP/1.0
37 balance leastconn47 balance leastconn
38 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 20048 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
3949
40backend backend-site6-local50backend backend-site6-local
41 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
42 http-request set-header Host site6.local51 http-request set-header Host site6.local
52 http-check send hdr Host site6.local
53 http-check send hdr User-Agent haproxy/httpchk
54 option httpchk HEAD / HTTP/1.0
43 balance leastconn55 balance leastconn
44 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt56 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
4557
46backend backend-site7-local58backend backend-site7-local
47 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
48 http-request set-header Host site7.local59 http-request set-header Host site7.local
60 http-check send hdr Host site7.local
61 http-check send hdr User-Agent haproxy/httpchk
62 option httpchk HEAD / HTTP/1.0
49 balance leastconn63 balance leastconn
50 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 20064 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
5165
52backend backend-site8-local66backend backend-site8-local
53 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
54 http-request set-header Host site8.local67 http-request set-header Host site8.local
68 http-check send hdr Host site8.local
69 http-check send hdr User-Agent haproxy/httpchk
70 option httpchk HEAD / HTTP/1.0
55 balance leastconn71 balance leastconn
56 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 20072 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
5773
58backend backend-site8-local-274backend backend-site8-local-2
59 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
60 http-request set-header Host auth.site8.local75 http-request set-header Host auth.site8.local
76 http-check send hdr Host auth.site8.local
77 http-check send hdr User-Agent haproxy/httpchk
78 option httpchk HEAD / HTTP/1.0
61 balance leastconn79 balance leastconn
62 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt80 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
6381
64backend backend-site9-local82backend backend-site9-local
65 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
66 http-request set-header Host site9.local83 http-request set-header Host site9.local
84 http-check send hdr Host site9.local
85 http-check send hdr User-Agent haproxy/httpchk
86 option httpchk HEAD / HTTP/1.0
67 balance leastconn87 balance leastconn
68 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 20088 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output2.txt b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output2.txt
index e5812ab..1c8ea3c 100644
--- a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output2.txt
+++ b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output2.txt
@@ -1,6 +1,8 @@
11
2backend backend-site1-local2backend backend-site1-local
3 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
4 http-request set-header Host site1.local3 http-request set-header Host site1.local
4 http-check send hdr Host site1.local
5 http-check send hdr User-Agent haproxy/httpchk
6 option httpchk HEAD / HTTP/1.0
5 balance leastconn7 balance leastconn
6 server server_1 archive.ubuntu.com:80 resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 2008 server server_1 archive.ubuntu.com:80 resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_test_output.txt b/tests/unit/files/haproxy_config_rendered_test_output.txt
index 1b15c14..650b4fd 100644
--- a/tests/unit/files/haproxy_config_rendered_test_output.txt
+++ b/tests/unit/files/haproxy_config_rendered_test_output.txt
@@ -106,69 +106,89 @@ listen combined-444
106 use_backend backend-site8-local if { hdr(Host) -i site8.local }106 use_backend backend-site8-local if { hdr(Host) -i site8.local }
107107
108backend backend-site1-local108backend backend-site1-local
109 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
110 http-request set-header Host site1.local109 http-request set-header Host site1.local
110 http-check send hdr Host site1.local
111 http-check send hdr User-Agent haproxy/httpchk
112 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
111 balance leastconn113 balance leastconn
112 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200114 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
113 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200115 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
114 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200116 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
115117
116backend backend-site2-local118backend backend-site2-local
117 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
118 http-request set-header Host site2.local119 http-request set-header Host site2.local
120 http-check send hdr Host site2.local
121 http-check send hdr User-Agent haproxy/httpchk
122 option httpchk GET /check/ HTTP/1.0
119 balance leastconn123 balance leastconn
120 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt124 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
121 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt125 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
122 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt126 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
123127
124backend backend-site3-local128backend backend-site3-local
125 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk129 http-request set-header Host site3.local
130 http-check send hdr Host site3.local
131 http-check send hdr User-Agent haproxy/httpchk
132 option httpchk HEAD / HTTP/1.0
126 option forwardfor except 127.0.0.1 192.168.1.1133 option forwardfor except 127.0.0.1 192.168.1.1
127 option forceclose134 option forceclose
128 http-request set-header Host site3.local
129 balance leastconn135 balance leastconn
130 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200136 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
131 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200137 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
132 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200138 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
133139
134backend backend-site5140backend backend-site5
135 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
136 http-request set-header Host site5.local141 http-request set-header Host site5.local
142 http-check send hdr Host site5.local
143 http-check send hdr User-Agent haproxy/httpchk
144 option httpchk HEAD / HTTP/1.0
137 balance leastconn145 balance leastconn
138 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200146 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
139147
140backend backend-site5-2148backend backend-site5-2
141 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
142 http-request set-header Host site5.local149 http-request set-header Host site5.local
150 http-check send hdr Host site5.local
151 http-check send hdr User-Agent haproxy/httpchk
152 option httpchk HEAD / HTTP/1.0
143 balance leastconn153 balance leastconn
144 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200154 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
145155
146backend backend-site6-local156backend backend-site6-local
147 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
148 http-request set-header Host site6.local157 http-request set-header Host site6.local
158 http-check send hdr Host site6.local
159 http-check send hdr User-Agent haproxy/httpchk
160 option httpchk HEAD / HTTP/1.0
149 balance leastconn161 balance leastconn
150 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt162 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
151163
152backend backend-site7-local164backend backend-site7-local
153 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
154 http-request set-header Host site7.local165 http-request set-header Host site7.local
166 http-check send hdr Host site7.local
167 http-check send hdr User-Agent haproxy/httpchk
168 option httpchk HEAD / HTTP/1.0
155 balance leastconn169 balance leastconn
156 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
157171
158backend backend-site8-local172backend backend-site8-local
159 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
160 http-request set-header Host site8.local173 http-request set-header Host site8.local
174 http-check send hdr Host site8.local
175 http-check send hdr User-Agent haproxy/httpchk
176 option httpchk HEAD / HTTP/1.0
161 balance leastconn177 balance leastconn
162 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200178 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
163179
164backend backend-site8-local-2180backend backend-site8-local-2
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
166 http-request set-header Host auth.site8.local181 http-request set-header Host auth.site8.local
182 http-check send hdr Host auth.site8.local
183 http-check send hdr User-Agent haproxy/httpchk
184 option httpchk HEAD / HTTP/1.0
167 balance leastconn185 balance leastconn
168 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt186 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
169187
170backend backend-site9-local188backend backend-site9-local
171 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
172 http-request set-header Host site9.local189 http-request set-header Host site9.local
190 http-check send hdr Host site9.local
191 http-check send hdr User-Agent haproxy/httpchk
192 option httpchk HEAD / HTTP/1.0
173 balance leastconn193 balance leastconn
174 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200194 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_test_output2.txt b/tests/unit/files/haproxy_config_rendered_test_output2.txt
index 1009f68..44ecadc 100644
--- a/tests/unit/files/haproxy_config_rendered_test_output2.txt
+++ b/tests/unit/files/haproxy_config_rendered_test_output2.txt
@@ -106,69 +106,89 @@ listen combined-444
106 use_backend backend-site8-local if { hdr(Host) -i site8.local }106 use_backend backend-site8-local if { hdr(Host) -i site8.local }
107107
108backend backend-site1-local108backend backend-site1-local
109 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
110 http-request set-header Host site1.local109 http-request set-header Host site1.local
110 http-check send hdr Host site1.local
111 http-check send hdr User-Agent haproxy/httpchk
112 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0
111 balance leastconn113 balance leastconn
112 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200114 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
113 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200115 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
114 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200116 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
115117
116backend backend-site2-local118backend backend-site2-local
117 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
118 http-request set-header Host site2.local119 http-request set-header Host site2.local
120 http-check send hdr Host site2.local
121 http-check send hdr User-Agent haproxy/httpchk
122 option httpchk GET /check/ HTTP/1.0
119 balance leastconn123 balance leastconn
120 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt124 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
121 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt125 server server_2 127.0.1.11:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
122 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt126 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
123127
124backend backend-site3-local128backend backend-site3-local
125 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk129 http-request set-header Host site3.local
130 http-check send hdr Host site3.local
131 http-check send hdr User-Agent haproxy/httpchk
132 option httpchk HEAD / HTTP/1.0
126 option forwardfor except 127.0.0.1 192.168.1.1133 option forwardfor except 127.0.0.1 192.168.1.1
127 option forceclose134 option forceclose
128 http-request set-header Host site3.local
129 balance leastconn135 balance leastconn
130 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200136 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
131 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200137 server server_2 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
132 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200138 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
133139
134backend backend-site5140backend backend-site5
135 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
136 http-request set-header Host site5.local141 http-request set-header Host site5.local
142 http-check send hdr Host site5.local
143 http-check send hdr User-Agent haproxy/httpchk
144 option httpchk HEAD / HTTP/1.0
137 balance leastconn145 balance leastconn
138 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200146 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
139147
140backend backend-site5-2148backend backend-site5-2
141 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
142 http-request set-header Host site5.local149 http-request set-header Host site5.local
150 http-check send hdr Host site5.local
151 http-check send hdr User-Agent haproxy/httpchk
152 option httpchk HEAD / HTTP/1.0
143 balance leastconn153 balance leastconn
144 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200154 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
145155
146backend backend-site6-local156backend backend-site6-local
147 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
148 http-request set-header Host site6.local157 http-request set-header Host site6.local
158 http-check send hdr Host site6.local
159 http-check send hdr User-Agent haproxy/httpchk
160 option httpchk HEAD / HTTP/1.0
149 balance leastconn161 balance leastconn
150 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt162 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
151163
152backend backend-site7-local164backend backend-site7-local
153 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
154 http-request set-header Host site7.local165 http-request set-header Host site7.local
166 http-check send hdr Host site7.local
167 http-check send hdr User-Agent haproxy/httpchk
168 option httpchk HEAD / HTTP/1.0
155 balance leastconn169 balance leastconn
156 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
157171
158backend backend-site8-local172backend backend-site8-local
159 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
160 http-request set-header Host site8.local173 http-request set-header Host site8.local
174 http-check send hdr Host site8.local
175 http-check send hdr User-Agent haproxy/httpchk
176 option httpchk HEAD / HTTP/1.0
161 balance leastconn177 balance leastconn
162 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200178 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
163179
164backend backend-site8-local-2180backend backend-site8-local-2
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
166 http-request set-header Host auth.site8.local181 http-request set-header Host auth.site8.local
182 http-check send hdr Host auth.site8.local
183 http-check send hdr User-Agent haproxy/httpchk
184 option httpchk HEAD / HTTP/1.0
167 balance leastconn185 balance leastconn
168 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt186 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
169187
170backend backend-site9-local188backend backend-site9-local
171 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
172 http-request set-header Host site9.local189 http-request set-header Host site9.local
190 http-check send hdr Host site9.local
191 http-check send hdr User-Agent haproxy/httpchk
192 option httpchk HEAD / HTTP/1.0
173 balance leastconn193 balance leastconn
174 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200194 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200

Subscribers

People subscribed via source and target branches