> On Jan 21, 2016, at 1:19 PM, Rainer Jung <rainer.j...@kippdata.de> wrote:
> 
> Can you provide a simple but somehow complete proxy_hcheck config snippet? 
> I'll set up a test and check what's wrong.
> 
> Regards,
> 

A very simple one is:

ProxyHCExpr foof2 {hc('body') !~ /domain is established/}

<Proxy balancer://hc>
  BalancerMember http://www.example.com/  hcmethod=get hcexpr=foof2
</Proxy>

it is designed to, as soon as it checks www.example.com, set
that worker to HC failed, via checking the response body and
looking for the 'domain is established' phrase.

To make sure that it is NOT disabled, change the '!~' to '=~'


Reply via email to