Hello,
I’ve been trying out nginx as reverse proxy, SSL wrapper and load
balancer on our internal site for now.
The problem I have is that if some backend servers are down I keep
getting “Bad Gateway” errors, even if there are backend servers online.
In the setup at had I had the setting like:
upstream intern.mysite.tld {
server 10.120.5.1:8080 max_fails=3 fail_timeout=300;
server 10.120.5.2:8080 max_fails=3 fail_timeout=300;
server 10.120.5.3:8080 max_fails=3 fail_timeout=300;
}
Only one of those were available. But despite the relatively high fail
timeout I got a Bad gateway warning every 3rd or 4th access. Is there a
way to keep nginx from throwing out so many warnings? When I switch a
productive environment I need a loadbalancing system that can deal with
servers that are down…
Björn