You could use a more complex health checking system to "soft stop" overloaded 
servers.

This health check would need to be http based, with a script of some kind on 
the machine itself deciding if new requests should be accepted.

That said, you can use the "option httpchk" option to health check a http 
service before directing traffic to the tcp load balanced service, e.g mysql or 
whatever.

Check out the example in the configuration guide in the optino httpchk section:

http://haproxy.1wt.eu/download/1.3/doc/configuration.txt

-JohnF 

> -----Original Message-----
> From: Guy [mailto:[email protected]] 
> Sent: November 25, 2009 7:30 AM
> To: [email protected]
> Subject: Re: Custom health checks
> 
> 2009/11/25 John Lauro <[email protected]>:
> > I use this method for a soft down type script easy to run 
> on an individual
> > server, but could be used as part of a generic health type 
> test that runs on
> > each server.  Implementation is left as an exercise for the 
> reader (cron
> > once a minute, some monitoring daemon or script that checks 
> more frequently,
> > etc...)
> 
> Thanks John, will definitely take a look at using that.
> 
> Can anyone think of situations where haproxy can make use of detailed
> health checks returned instead of just blocking the port on the back
> end server?
> I can't imagine that anything more would be necessary, but then I
> don't know haproxy so well that I can be sure  of all its
> capabilities.
> 
> Thanks
> Guy
> 
> -- 
> Don't just do something...sit there!
> 
> 

Reply via email to