Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4731

HAproxy custom healthcheck

$
0
0

@senattcs wrote:

I have an HAProxy as a member in A10 and whenever A10 sends “/healthcheck” call- HAProxy needs to return “ACTIVE” word. I was trying-

backend xxx.healthcheck
mode http
timeout server 60s
default-server inter 5s fall 3 rise 2
http-check expect string “ACTIVE”

            errorfile 503 /var/prod/xxx-shared/scripts/HAProxy/hk.http

but definitely I’m doing something wrong- as my tests are showing

503 Service Unavailable
No server is available to handle this request.

instead of ACTIVE word in the response.

contents of hk.http:

HTTP/1.1 200 OK\r\n
Server: Apache-Coyote/1.1\r\n
Content-Type: text/html;charset=UTF-8\r\n

<?xml version="1.0" encoding="UTF-8"?> ACTIVE

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>