Thanks, once I figure out logging I'll let you guys know what I discover
:^) 

Thomas Allen
Web Developer, ASCE
703.295.6355

-----Original Message-----
From: Willy Tarreau [mailto:[email protected]] 
Sent: Friday, March 06, 2009 1:39 PM
To: Allen, Thomas
Cc: Jeffrey 'jf' Lim; [email protected]
Subject: Re: "option httpchk" is reporting servers as down when they're
not

Hi Thomas,

On Thu, Mar 05, 2009 at 08:45:20AM -0500, Allen, Thomas wrote:
> Hi Jeff,
> 
> The thing is that if I don't include the health check, the load
balancer works fine and each server receives equal distribution. I have
no idea why the servers would be reported as "down" but still work when
unchecked.

It is possible that your servers expect the "Host:" header to
be set during the checks. There's a trick to do it right now
(don't forget to escape spaces) :

        option httpchk GET /index.php HTTP/1.0\r\nHost:\
www.mydomain.com

Also, you should check the server's logs to see why it is reporting
the service as down. And as a last resort, a tcpdump of the traffic
between haproxy and a failed server will show you both the request
and the complete error from the server.

Regards,
Willy


Reply via email to