January 06, 2015 06:06AM
I have Nginx server configured with couple of backend servers with keepalive connections enabled.

I am trying to understand what will be the Nginx's behaviour in case the connection is closed by an upstream server legitimately when Nginx is trying to send a new request exactly at the same time. In this race condition, does Nginx re-try the request internally or does it return an error code?

In case Nginx needs to be forced to retry, should I be using proxy_next_upstream? My understanding is that this setting will make the request re-tried on the next server in the upstream block. On the same note, how do I force the retry on the failed server first to avoid cache misses.

Thanks,
Gopala
Subject Author Posted

Upstream Keepalive connection close

Gona January 06, 2015 06:06AM

Re: Upstream Keepalive connection close

Maxim Dounin January 12, 2015 09:40AM

Re: Upstream Keepalive connection close

Gona January 15, 2015 10:53AM

Re: Upstream Keepalive connection close

Maxim Dounin January 15, 2015 12:08PM

Re: Upstream Keepalive connection close

Gona February 23, 2015 07:27AM

Re: Upstream Keepalive connection close

Maxim Dounin February 25, 2015 09:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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