$rquest_time for only the time it spent getting data from the upstream

Christian Parpart trapni at gmail.com
Mon Jun 2 14:00:28 UTC 2014


Hey all,

we used $request_time in the past to measure how long it took to serve
certain pages, this was never the problem, because there was something in
front of nginx, thus, the client read/write operatings didn't influence the
$request_time as much as a real client would.

However, now, that we'd like to skip that extra level of indirection, we
can't actually measure the time it took to actually process the request, as
$request_time now kind of doubles because internet clients are slow usually.

So is there a way to log the time the request handler required to "just
handle the request internally", without the reads and writes from/to the
client?

Many thanks in advance,
Christian Parpart.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140602/06e2b756/attachment.html>


More information about the nginx mailing list