Hi there,
I'm setting up haproxy in Amazon's EC2 environment.. I'm using an Ubuntu image from alestic.com.
What I would like to do is have a server get removed from the pool if a page doesn't respond back with certain text in the body.
I have this section for my web servers in the haproxy.cfg:
listen http-in :80
timeout connect 10000
timeout server 100000
timeout client 10000
option httpchk GET /go?Login HTTP/1.0
http-check expect string Login
cookie SERVERID insert nocache indirect
server WEB1 xx.xx.xx.xx:80 cookie web1 check maxconn 2000
server WEB2 yy.yy.yy.yy:80 cookie web2 check maxconn 2000
My understanding is that this will hit /go?Login on my server and the http-check expect line will make sure the response body contains the string "Login"
However when I restart haproxy, I get the following error:
<https://forums.aws.amazon.com/> ALERT 350/224528 (7647) : parsing [/etc/haproxy/haproxy.cfg:40] : 'http-check' only supports 'disable-on-404'.
I'm confused because looking at the documentation, 'http-check expect' is supported for listen blocks in the config??
dpkg -p haproxy reports back:
dpkg -p haproxy
Package: haproxy
Priority: optional
Section: net
Installed-Size: 1084
Maintainer: Ubuntu Developers <ubuntu-devel-discuss#lists.ubuntu.com>
Architecture: i386
Version: 1.4.8-1
Depends: libc6 (>= 2.5), libpcre3 (>= 7.7), adduser
Size: 508358
Thank you very much, I'm new to this so my apologies if this is something really basic. I've spent quite a bit of time reading various posts and documentation but am still at a loss. Thanks!
-Kevin Van Heusen
kevin#virtualsoftware.net
Received on 2010/12/20 20:18
This archive was generated by hypermail 2.2.0 : 2010/12/20 20:30 CET