Welcome! Log In Create A New Profile

Advanced

Re: Upstream Read Timeout Upon Backend Server Offline

Maxim Dounin
May 06, 2013 12:38PM
Hello!

On Mon, May 06, 2013 at 12:12:44PM -0400, mevans336 wrote:

> Hi Mex,
>
> We shut them down one-by-one, 45 minutes apart. The issue only seems to
> occur when the first server listed is blocked however. We don't see the read
> timeouts if I leave the iptables rules enabled on the second server. I think
> that may be a false symptom related to ip_hash binding clients to the first
> server.

Timeouts are expected to appear in logs once per fail_timeout=
specified (after fail_timeout expires, nginx will route one
request to a server in question to check if it's alive again).

As only certain ips are mapped to the server blocked with ip_hash,
it might nontrivial to test things with low traffic.

> Here are the iptables rules:
>
> Drop rule: iptables -I INPUT -s 192.168.1.0/24 -j DROP
> Allow rule: iptables -D INPUT -s 192.168.1.0/24 -j DROP

Using "-j REJECT" would make things a lot faster.

[...]

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Upstream Read Timeout Upon Backend Server Offline

mevans336 May 06, 2013 09:46AM

Re: Upstream Read Timeout Upon Backend Server Offline

mex May 06, 2013 09:59AM

Re: Upstream Read Timeout Upon Backend Server Offline

mex May 06, 2013 10:01AM

Re: Upstream Read Timeout Upon Backend Server Offline

mevans336 May 06, 2013 12:12PM

Re: Upstream Read Timeout Upon Backend Server Offline

mevans336 May 06, 2013 12:15PM

Re: Upstream Read Timeout Upon Backend Server Offline

Maxim Dounin May 06, 2013 12:38PM

Re: Upstream Read Timeout Upon Backend Server Offline

mevans336 May 06, 2013 01:47PM

Re: Upstream Read Timeout Upon Backend Server Offline

mex May 06, 2013 02:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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