Removal of server from nginx load balancer does not reflect after nginx reload

2015-08-13 Thread dhirajp...@gmail.com
Hi, I am using nginx 1.8.0 as a load balancer. Below is the configuration snippet: upstream appservers { least_conn; server 10.21.3.123:8083; server 10.21.3.125:8083; } server { listen 443 ssl spdy backlog=2048; add_header Strict-Transport-Security "max-age=31

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

nginx load balancing

2015-08-13 Thread Chino Aureus
Hi, I'm new to nginx. Need help understanding the http/s load balancing capability of nginx open source versus nginx plus. Appreciate any info regarding this query :) I just downloaded nginx and I'm going to try experiment load balancing capability this weekend. Regards Kenz ___

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

2015-08-13 Thread Francis Daly
On Thu, Aug 13, 2015 at 05:12:57AM -0400, karkunpavan wrote: Hi there, > starnge thing is when both IP1, IP2 are down the nginx server itself takes > it up and responds to the http requests from ab. Is there a way to make > nginx not behave this way? That does seem strange to me. What output do

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

Re: Problem with uwsgi_no_cache

2015-08-13 Thread Francis Daly
On Thu, Aug 13, 2015 at 12:06:50AM -0400, daveyfx wrote: Hi there, > I'm attempting to exclude application/json data from storing in nginx's > cache. All other content types are OK to cache. I thought that the below > config would work for me, but nginx is still caching everything that is > pro