Re: how to make nginx loadbalancer give 404 when all upstream servers are down

2015-08-14 Thread karkunpavan
nginx is listening on 8000. port 9000 is mapped to 8000 on the docker so I think it's not related. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260980,261004#msg-261004 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Re: how to make nginx loadbalancer give 404 when all upstream servers are down

2015-08-14 Thread karkunpavan
Indeed. It's right there I did not even see it. Thanks itpp2012 and Francis Daly. since ab and httperf are behaving unexpectedly, I think best way is to parse the nginx logs to find out dropped requests. Thanks a lot :) :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260980,261001#m

Re: how to make nginx loadbalancer give 404 when all upstream servers are down

2015-08-13 Thread karkunpavan
Hi Fracis, Thanks for taking a look. With it curl behaves as expected, but with tools like ab and httperf, I am not seeing bad gateway responses when both the upstream servers are down. Read ahead for more details. Below is info using ab request and curl request. ab: When one upstream server is

how to make nginx loadbalancer give 404 when all upstream servers are down

2015-08-13 Thread karkunpavan
Hi folks, I have been stuck this issue for a long time now. Searches could not solve my issue hence posting here. Please help. I am using nginx as a load balancer and ngnix.conf looks like: worker_processes 4; events { worker_connections 1024; } http { upstream ab_backend { ser