4 messages in ru.sysoev.nginxRe: Big difference between upstream r...
FromSent OnAttachments
PraveenOct 15, 2008 10:24 am 
Maxim DouninOct 15, 2008 11:03 am 
PraveenOct 15, 2008 1:26 pm 
Maxim DouninOct 15, 2008 2:02 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Big difference between upstream response time and request timeActions...
From:Maxim Dounin (mdou@mdounin.ru)
Date:Oct 15, 2008 11:03:16 am
List:ru.sysoev.nginx

Hello!

On Wed, Oct 15, 2008 at 10:25:20AM -0700, Praveen wrote:

Hi, I'm using nginx as a reverse proxy to my backends. I see there is a huge discrepancy between upstream response time and request time.

X.X.X.X [15/Oct/2008:09:32:57 -0700] "GET /js/something.js HTTP/1.1" upstream_response_time 0.005 request_time 105.026 90732578 10.3.0.134:8000

It's generally negligible. But sometimes its as high as 5 or more seconds, and in some cases as high as the example above.

Any idea what's happening? nginx is running on a dedicated server, and has about 2000 active connections.

The $request_time variable measures wall clock time it took to fully process request, from first byte got from client to last byte sent to client. This includes time spent waiting for client and may really vary depending on what client does / quality of client's network connection / etc.

Generally you shouldn't pay much attention to this number unless you have control over the client in question.