Config help - check a URL

From: Christopher F. Falzone <cfalzone#edinboro.edu>
Date: Fri, 25 Apr 2008 10:54:59 -0400


Hello,

I have been using haProxy for a while and it is working great. However, when one of my 3 servers stops responding, I am still getting traffic to it. I would guess this is due to the way I have the check setup. What I really want it to do is check and see if a particular URL is up instead of just the IP. I know there must be a way to do this, but these things really confuse me.

Below is my current config file. How would I change the check to look at a URL instead of just at the IP level?

Would I use ...
option httpchk /home/index.dot

Any help you can give is much appreciated :)

> global
> daemon
> quiet
> #debug
> nbproc 2
> ulimit-n 65536
> maxconn 5000
>
> listen http_proxy 147.64.32.218:80
> mode http
> cookie SERVERID insert nocache indirect
> balance source
> option forwardfor
> server cms1 192.168.8.221:80 cookie cms1 check #inter 10000
> server cms2 192.168.8.220:80 cookie cms2 check #inter 10000
> server cms3 192.168.8.219:80 cookie cms3 check #inter 10000
> clitimeout 150000
> srvtimeout 30000
> contimeout 4000
> redispatch

-- 
Christopher F. Falzone
Technology & Communications
Edinboro University
(814) 732-1080
cfalzone#edinboro.edu
http://www.edinboro.edu

Great Things Happen Here!
Received on 2008/04/25 16:54

This archive was generated by hypermail 2.2.0 : 2008/04/25 17:00 CEST