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

2009-05-22 Thread Willy Tarreau
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

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

2009-05-21 Thread Sanjeev Kumar
Need clarification on using 2nd port for http health-check. If I define my config as my App to serve port-999 and respond to Http-healthChk on port-81: ... listen 192.168.1.2: 999 mode http option httpchk server servA 192.168.1.4:999 check port 81 server servA 192.168.1.5:999 check port

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

2009-05-17 Thread Willy Tarreau
Hi, On Fri, May 15, 2009 at 10:51:20AM -0400, John Lauro wrote: I think there might be a better way, but you could run the check against a different port. On that other port, you could have it run your custom check and return an OK response if your check passes and fail if it doesn't. That's