Welcome! Log In Create A New Profile

Advanced

Nginx upstream servers status

All files from this thread

File Name File Size   Posted by Date  
emailsiglogo.png 6.6 KB open | download Sajan Parikh 07/03/2013 Read message
smime.p7s 4.4 KB open | download Sajan Parikh 07/03/2013 Read message
emailsiglogo.png 6.6 KB open | download Sajan Parikh 07/03/2013 Read message
smime.p7s 4.4 KB open | download Sajan Parikh 07/03/2013 Read message
emailsiglogo.png 6.6 KB open | download Sandeep L 07/03/2013 Read message
Sandeep L
July 03, 2013 12:56AM
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 fail_timeout=300s;


server host2.example.com:8080 max_fails=2 fail_timeout=300s;


}




Now issue is if the request comes to nginx when one server is down
due to unknown reasons its waiting for a long time getting response or
some times its getting connection timeout.




Is there any module in nginx to get upstream servers status and forward requests only working upstream server.


Can someone suggest me right configuration to get response from
appcluster without latency or connection time out whenever a server wont
respond.


Thanks,
Sandeep. _______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx upstream servers status

Sandeep L July 03, 2013 12:56AM

Re: Nginx upstream servers status Attachments

Sajan Parikh July 03, 2013 01:06AM

Re: Nginx upstream servers status

mex July 03, 2013 01:11AM

RE: Nginx upstream servers status

Sandeep L July 03, 2013 01:38AM

Re: Nginx upstream servers status Attachments

Sajan Parikh July 03, 2013 01:48AM

RE: Nginx upstream servers status Attachments

Sandeep L July 03, 2013 01:56AM

Re: RE: Nginx upstream servers status

mex July 03, 2013 02:04AM

RE: Nginx upstream servers status

Sandeep L July 03, 2013 02:12AM

Re: RE: Nginx upstream servers status

mex July 03, 2013 02:39AM

RE: Nginx upstream servers status

Sandeep L July 03, 2013 05:00AM

RE: Nginx upstream servers status

Sandeep L July 04, 2013 01:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 96
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready