On 11/11/2015 12:00pm, Bryan Talbot wrote:
>     1. Will haproxy remove a server from its backend pool if it returns a 500 
> response to a request (I'm not talking about the health check, but just a 
> regular request)
> 
> 
> 
> Not by default but haproxy can monitor normal traffic and take action if 
> desired. See the 'observe' and 'on-error' options.

Ah, then by default it does what I want. Perfect.

For others following along, the manual is here: 
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#observe  That 
observe feature is really cool and I hadn't seen it before.


>     2. Can haproxy be instructed to ignore 500 errors for its health check (I 
> still want to detect that the server has gone away and doesn't respond, but 
> the 500 error might be transient or it might just be on one page due to 
> misconfiguration and doesn't warrant removing the whole server).
> 
> 
> Probably, but if you don't care about the HTTP request or response, why not 
> just use TCP health checks?

Ah, of course! When looking for complex solutions I missed the simple thing in 
front of me.

Thanks
Ari



-- 
-------------------------->
Aristedes Maniatis
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to