Welcome! Log In Create A New Profile

Advanced

Re: Request Time in Nginx Log as always 0.000 for HIT Request

Maxim Dounin
August 02, 2020 03:08PM
Hello!

On Sat, Aug 01, 2020 at 04:31:14PM -0400, anish10dec wrote:

> We are observing a behavior where request time and upstream response time is
> logged as same value when request is MISS in log file.
>
> And when there is HIT for the request , request time is logged as 0.000 for
> all the requests.

nginx updates internal time only once per event loop iteration, so
it is relatively easy to see $request_time logged as 0 (or
identical to $upstream_response_time as long as there was an
request to upstream). This implies:

- the request can be read immediately without waiting for
additional data from client;

- the response is small enough to fit into the socket buffer.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Request Time in Nginx Log as always 0.000 for HIT Request

anish10dec August 01, 2020 04:31PM

Re: Request Time in Nginx Log as always 0.000 for HIT Request

Maxim Dounin August 02, 2020 03:08PM

Re: Request Time in Nginx Log as always 0.000 for HIT Request

anish10dec August 03, 2020 03:54PM

Re: Request Time in Nginx Log as always 0.000 for HIT Request

Maxim Dounin August 03, 2020 05:08PM

Re: Request Time in Nginx Log as always 0.000 for HIT Request

anish10dec August 11, 2020 08:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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