Stopping traffic to unhealthy web server instance from loadbalancer

142 Views Asked by At

I have 3 web servers (Apache) which are behind vip (Apache, serving as a reverse proxy). We dont want LB to serve traffic if the anyone of web server which has 501 error.

How can I do that automatically.

PS: I am thinking is to use health checks as part of mod_proxy (under balancemember attribute).

1

There are 1 best solutions below

1
On

I afraid you use wrong tool for LB. Apache can do that but it's not designed specially for that. My suggestion is to use HAProxy which is typical software for that situation. If you need help with HAProxy just write. I could try to help but not ealier then on weekend.

ps. I created this account just to answer you :) I really know what I'm talking about. You want to use HAProxy instead of apache.