Nginx upstream servers status

Sajan Parikh sajan at noppix.com
Wed Jul 3 05:05:09 UTC 2013


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 lowering fail_timeout.

Sajan Parikh
/Owner, Noppix LLC/

e: sajan at noppix.com
p: (563) 726-0371

Noppix LLC Logo
On 07/02/2013 11:55 PM, Sandeep L wrote:
> 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130703/2bc6e1f8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emailsiglogo.png
Type: image/png
Size: 6717 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130703/2bc6e1f8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4473 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130703/2bc6e1f8/attachment.bin>


More information about the nginx mailing list