Welcome! Log In Create A New Profile

Advanced

Re: $request_time meaning

Francis Daly
November 22, 2011 05:46PM
> > On Mon, Nov 21, 2011 at 08:41:15PM +0200, Calin Don wrote:
> On Mon, Nov 21, 2011 at 20:55, Maxim Dounin <mdounin@mdounin.ru> wrote:
On Tue, Nov 22, 2011 at 11:52:29PM +0200, Calin Don wrote:

Hi there,

> > > How is the $request_time calculated in the case of a proxied request. I'm
> > > interested especially in the case where the resource is stale in cache.
> >
> > $request_time is always time since start of the request (when
> > first bytes are read from client) till end of the request (when
> > last bytes are sent to client and logging happens).

> So the time spent doing a post_action is added to $request_time or not?

It seems straightforward enough to test.

Define a post_action in a location of (for example) a php script which
does sleep(3), then see if $request_time is 3 seconds bigger in that
location than elsewhere.

When I try it in a location which just serves static files, I do see
$request_time = 3.002 in access.log.

You can do the same in your stale-in-cache location.

Good luck,

f
--
Francis Daly francis@daoine.org

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

$request_time meaning

Calin Don November 21, 2011 01:42PM

Re: $request_time meaning

Maxim Dounin November 21, 2011 01:58PM

Re: $request_time meaning

Calin Don November 22, 2011 04:54PM

Re: $request_time meaning

Francis Daly November 22, 2011 05:46PM

Re: $request_time meaning

Maxim Dounin November 23, 2011 04:58AM

Re: $request_time meaning

Calin Don November 23, 2011 06:26AM

Re: $request_time meaning

Maxim Dounin November 23, 2011 07:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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