Re: New to HAproxy - how to define custom health-check msg?

From: Willy Tarreau <w#1wt.eu>
Date: Fri, 22 May 2009 19:04:38 +0200


On Fri, May 22, 2009 at 09:34:39PM +0530, Sanjeev Kumar wrote:
> Newbie question:
>
> In response to http-health-chk string: "HEAD /index.html HTTP/1.0" ,
> if my server responds responds with only one line:
> "HTTP/1.0 200 OK " , will the health will be accepted ok.
> (HAproxy in not accepting this health-response in my setup).
>
> Does the health-chk response needs to be complete set of headers ??

Please recheck your script's output, as haproxy only verifies HTTP/1.0 and the first character of the status code (2 here), and is OK with that reply. So surely there is something odd.

Regards,
Willy Received on 2009/05/22 19:04

This archive was generated by hypermail 2.2.0 : 2009/05/22 19:15 CEST