Re: Nginx upstream delays

2015-03-10 Thread B.R.
ts (also not for other log entries, they're similar). >> >> It's going to be hard to diagnose if Gunicorn says the request takes 40 >> ms, but Nginx says it takes 3042 ms. >> >> Hunting on... >> >> - Wiebe >> >> >> --

Re: Nginx upstream delays

2015-03-10 Thread Wiebe Cazemier
useful filter. I'll try to set something up. As for Maxim's response about packet loss; it would have to be packet loss on a file socket. Is this even possible? - Wiebe - Original Message - > From: "B.R." > To: "nginx ML" > Sent: Tuesday, 10

Re: Nginx upstream delays

2015-03-10 Thread Maxim Dounin
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 th

Re: Nginx upstream delays

2015-03-10 Thread B.R.
t; > *From: *"Wandenberg Peixoto" > *To: *nginx@nginx.org > *Sent: *Tuesday, 10 March, 2015 1:37:09 AM > *Subject: *Re: Nginx upstream delays > > > You also have to consider the rate your client get data from the server. > The request time is the entire time spent

Re: Nginx upstream delays

2015-03-10 Thread Wiebe Cazemier
;re similar). It's going to be hard to diagnose if Gunicorn says the request takes 40 ms, but Nginx says it takes 3042 ms. Hunting on... - Wiebe - Original Message - > From: "Wandenberg Peixoto" > To: nginx@nginx.org > Sent: Tuesday, 10 March, 2015 1:37:09 AM

Re: Nginx upstream delays

2015-03-09 Thread Wandenberg Peixoto
You also have to consider the rate your client get data from the server. The request time is the entire time spent from the beginning of the request until the end of response. So you may not have a problem on your server, just a lazy client :) On Mon, Mar 9, 2015 at 1:05 PM, B.R. wrote: > You ar

Re: Nginx upstream delays

2015-03-09 Thread B.R.
You are on a nginx mailing list, thus I will reply on the nginx side of the problem. You can diagnose further to tell if the problem comes from nginx or from the backend by using 2 different variables in your log message: $request_time

Nginx upstream delays

2015-03-09 Thread Wiebe Cazemier
Hello, 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 an