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 th

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

2009-05-22 Thread Sanjeev Kumar
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

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 8

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

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

2009-05-15 Thread John Lauro
riday, May 15, 2009 10:26 AM To: haproxy@formilux.org Subject: Re: New to HAproxy - how to define custom health-check msg? Hi, I am planning to use HAproxy to load-balance my custom-service(Tcp Application) on Real-servers. My service is not Http-based, hence option 'httpchk'

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

2009-05-15 Thread Sanjeev Kumar
> Hi, > > I am planning to use HAproxy to load-balance my custom-service(Tcp > Application) on Real-servers. > My service is not Http-based, hence option 'httpchk' would be not be > replied by my App. > Just checking TCP-connection open is not sufficient. > > How can I define my custom "send-string

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

2009-05-15 Thread Sanjeev Kumar
Hi, I am planning to use HAproxy to load-balance my custom-service(Tcp Application) on Real-servers. My service is not Http-based (hence option 'httpchk') wouldn't work. Just checking TCP-connection open is not sufficient. How can I define my custom "send-string" and "expected-string" using HA-pr