Welcome! Log In Create A New Profile

Advanced

Re: Error handling of "Connection refused" conditions

Reinis Rozitis
June 20, 2012 03:06PM
> I am using nginx to distribute http load across three upstream application
> servers. It actually works really well in normal usage, but when we
> restart one of the upstream servers for maintenance (such as for an OS
> update), nginx tends to hang incoming requests for some time (30 seconds
> or more). When a node is brought offline, the nginx error logs show a few
> messages like this:


You should probably post the relevant parts of your configuration since
there are quite few parameters to tune nginx for a better responsiveness.

To name a few: proxy_connect_timeout, proxy_read_timeout, proxy_send_timeout
which by default are 60 seconds (what could explain your "hanging"
requests), lowering those allows 'proxy_next_upstream' (by default - timeout
and error) kick in sooner so the backend changes/restarts are seemless and
don't really affect the end-users so much.

rr

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

Error handling of "Connection refused" conditions

Dustin Wenz June 20, 2012 01:28PM

Re: Error handling of "Connection refused" conditions

Reinis Rozitis June 20, 2012 03:06PM

Re: Error handling of "Connection refused" conditions

Dustin Wenz June 20, 2012 03:42PM

Re: Error handling of "Connection refused" conditions

Reinis Rozitis June 20, 2012 05:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
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