From 050f24770aec7a74c1a07ba64cf2cb83afb72f1a Mon Sep 17 00:00:00 2001 From: Nicolas Vollmar Date: Fri, 19 Apr 2024 23:59:17 +0200 Subject: T6246: improve haproxy http check configuration --- .../load-balancing_reverse-proxy.xml.in | 42 +++++++++++++++++----- 1 file changed, 34 insertions(+), 8 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/load-balancing_reverse-proxy.xml.in b/interface-definitions/load-balancing_reverse-proxy.xml.in index 645fe30c7..eb01580da 100644 --- a/interface-definitions/load-balancing_reverse-proxy.xml.in +++ b/interface-definitions/load-balancing_reverse-proxy.xml.in @@ -110,29 +110,55 @@ HTTP method used for health check + + options head get post put + - options|get|post|put + options|head|get|post|put HTTP method used for health checking - options|get|post|put + (options|head|get|post|put) URI used for HTTP health check (Example: '/' or '/health') + + ^\/([^?#\s]*)(\?[^#\s]*)?$ + - + Expected response for the health check to pass - - txt - expected response (Example: 'status 200-299' or 'string success') - - + + + + Expected response status code for the health check to pass + + u32:200-399 + Expected response code + + + + + Status code must be in range 200-399 + + + + + Expected to be in response body for the health check to pass + + txt + A string expected to be in the response + + + + + #include -- cgit v1.2.3