RE: Nginx upstream servers status

2013-07-03 Thread Sandeep L
seconds. Can someone suggest me how to response time with nginx? Thanks,Sandeep. From: sandeepvre...@outlook.com To: nginx@nginx.org Subject: RE: Nginx upstream servers status Date: Wed, 3 Jul 2013 14:29:23 +0530 While looking at logs following message appeared: [error] 16488#0: *80 upstream

RE: Nginx upstream servers status

2013-07-03 Thread Sandeep L
0/assets/images/transparent.png";, host: "hostname", referrer: "http://hostname"; Thanks,Sandeep. > To: nginx@nginx.org > Subject: Re: RE: Nginx upstream servers status > From: nginx-fo...@nginx.us > Date: Wed, 3 Jul 2013 02:39:33 -0400 > > i'd suggest you'

Re: RE: Nginx upstream servers status

2013-07-02 Thread mex
i'd suggest you'll start with low-level-debugging: - goto host1 and make a tcpdump port 8080 / tail -f against access-logs of that server; - make a request - check., what happens to that request, e.g. where it "hangs" you could also, just in case, make a "tcpdump port 808 and host host2" onm your

RE: Nginx upstream servers status

2013-07-02 Thread Sandeep L
I have 2 upstream servers host1 and host2. host1 is up and running and listening on port 8080host2 is powered off. When I sent a request to nginx, I received response after 2 minutes. Until 2 minutes the request is waiting. Thanks,Sandeep. > To: nginx@nginx.org > Subject: Re: RE: Nginx up

Re: RE: Nginx upstream servers status

2013-07-02 Thread mex
you are sure, your upstream-servers are not answering on given ports? http://wiki.nginx.org/HttpUpstreamModule#server vs http://wiki.nginx.org/NginxHttpProxyModule#proxy_connect_timeout http://wiki.nginx.org/NginxHttpProxyModule#proxy_read_timeout Posted at Nginx Forum: http://forum.nginx.org

RE: Nginx upstream servers status

2013-07-02 Thread Sandeep L
-0500 From: sa...@noppix.com To: nginx@nginx.org Subject: Re: Nginx upstream servers status In your proxy_next_upstream, why do you have 'off' enabled. off — it forbids the request transfer to the next server. Remove 'off&

Re: Nginx upstream servers status

2013-07-02 Thread Sajan Parikh
 $remote_addr;                 } } Thanks, Sandeep. > To: nginx@nginx.org > Subject: Re: Nginx upstream servers status > From: nginx-fo...@nginx.us > Date

RE: Nginx upstream servers status

2013-07-02 Thread Sandeep L
http_503 http_504 off;proxy_set_header X-Real-IP $remote_addr; }} Thanks,Sandeep. > To: nginx@nginx.org > Subject: Re: Nginx upstream servers status > From: nginx-fo...@nginx.us > Date: Wed, 3 Jul 2013 01:11:20 -0400 > > you allow 600 seconds

Re: Nginx upstream servers status

2013-07-02 Thread mex
you allow 600 seconds to pass until you npotice, that your upstream-server is not responsible. ... max_fails=2 fail_timeout=300s; why? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240513,240515#msg-240515 ___ nginx mailing list nginx@ng

Re: Nginx upstream servers status

2013-07-02 Thread Sajan Parikh
Have you looked at the proxy_next_upstream configuration? http://wiki.nginx.org/NginxHttpProxyModule#proxy_next_upstream It should do what you want. Also, depending on yourapplication and traffic, it might also be worth looking into lowe

Nginx upstream servers status

2013-07-02 Thread Sandeep L
Hi, I am trying to configure nginx with upstream. We have 3 machines where we run application server and proxy passing all requests from nginx to application serves. I used following configuration in nginx: upstream appcluster { server host1.example.com:8080 max_fails=2 fa