On Friday 12 March 2010, Willy Tarreau wrote:
> On Fri, Mar 12, 2010 at 09:32:16AM +0100, Anze wrote:
> > I know this is not really haproxy's problem (the bug is on the PHP side),
> > but reliability would be much higher if haproxy could compare the
> > response body to some string (for instance, server must return "really
> > ok" in request body). That way the bug in interpreter could never cause a
> > false positive.
> > ...
> > Any chance this can be done with haproxy?
> 
> It is possible with the patch that Nick Chalk recently posted in the thread
> "Truncated health check response from real servers". It is a rework of an
> ...
> You seem to be a good candidate to test it :-)

I'd love to! We will be going live in a few weeks (hopefully :) ) and things 
must work then, so I'm on a tight schedule. Will try to apply the patch and 
let you know how it goes. 

From what I gathered from the sources, I just set this option:
  http-check expect string all_is_ok

And then in check.php:
<? 
  // ... do some checks...

  echo "all_is_ok";
?>

Am I correct?

Thanks for a fast response, really appreciate it!

Anze

Reply via email to