Welcome! Log In Create A New Profile

Advanced

Re: Nginx upstream delays

Maxim Dounin
March 10, 2015 10:40AM
Hello!

On Mon, Mar 09, 2015 at 04:28:22PM +0100, Wiebe Cazemier wrote:

> I have a question about sporadic long upstream response times
> I'm seeing on (two of) our Nginx servers. It's kind of hard to
> show and quantify, but I'll do my best.
>
> One is a Django Gunicorn server. We included the upstream
> response time in the Nginx access log and wrote a script to
> analyze them. What we see, is that on the login page of a
> website (a page that does almost nothing) 95%-99% of 'GET
> /customer/login/' requests are processed within about 50 ms. The
> other few percent can take several seconds. Sometimes even 5s.
> Our Munin graphs show no correlation in disk latency, cpu time,
> memory use, etc.
>
> I also added an access log to Gunicorn, so that I can see how
> long Gunicorn takes to process requests that Nginx thinks take
> long. Gunicorn has 8 workers. It can be seen that there is
> actually no delay in Gunicorn. For instance, Nginx sees this
> (the long upstream response time is marked red, 3.042s):

The 3s time suggests there is a packetloss somewhere.

--
Maxim Dounin
http://nginx.org/

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

Nginx upstream delays

Wiebe Cazemier March 09, 2015 11:30AM

Re: Nginx upstream delays

B.R. March 09, 2015 12:08PM

Re: Nginx upstream delays

wandenberg March 09, 2015 08:38PM

Re: Nginx upstream delays

Wiebe Cazemier March 10, 2015 05:26AM

Re: Nginx upstream delays

B.R. March 10, 2015 08:36AM

Re: Nginx upstream delays

Wiebe Cazemier March 10, 2015 10:56AM

Re: Nginx upstream delays

B.R. March 10, 2015 01:02PM

Re: Nginx upstream delays

Maxim Dounin March 10, 2015 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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