Hi Neil,

Le mercredi 16 février 2011 18:45:00, Neil Prockter a écrit :
> Hello
> 
> I using tomcat as a backend server and I'd like to use a httpchk.
> Because tomcat splits the response to the keepalive over a few packets
> haproxy is marking it as down. tshark shows the response is a 200 just
> its not in the first packet.

I don't understand what you mean with "keepalive" for this checks.

> (...)
> #  option httpchk HEAD /
>   server  backend-0 backend-0:8080 cookie epd0 check inter 2000 rise 2
> fall 5
>   server  backend-1 backend-1:8080 cookie epd1 check inter 2000 rise 2
> fall 5
> (...) 
> uncommenting the httpchk leads to
> 
> [WARNING] 046/172220 (28956) : Server epd-rewrite/backend-0 is DOWN,
> reason: Layer7 timeout, check duration: 2003ms.
> [WARNING] 046/172221 (28956) : Server epd-rewrite/backend-1 is DOWN,
> reason: Layer7 timeout, check duration: 2004ms.
> [ALERT] 046/172221 (28956) : proxy 'epd-rewrite' has no server available!
> 
> Please could someone enlighten me as to which options/changes they've
> found effective.

Are you sure that http://backend-0:8080/ and http://backend-1:8080/ answers in 
less that 2000 ms ? Your logs say they're longer than that.

Just to check here, which version of tomcat are you using ? Is your 
application behind those urls or the ROOT application provided by tomcat ?

Also, nothing with the issue, but :
- I don't think you want to use "cookie  SERVERID rewrite"
- you should use "option httpclose" or "option http-server-close" to not have 
issues with your cookie stickiness.

-- 
Cyril Bonté

Reply via email to