Welcome! Log In Create A New Profile

Advanced

nginx report a timestamp on upstream_response_time

Dani Bento
February 10, 2015 06:56AM
Hello,

We are using nginx 1.6.2 and we found in our logs a strange behavior
when connecting to an upstream.

We found that in ngx_http_upstream.c:1213 we have:

u->state->response_sec = tp->sec;
u->state->response_msec = tp->msec;

which gave to the last state the current ngx time (ngx_timeofday()).

For some reason, the ngx_http_upstream_finalize_request(), where those
values are updated to the correct value, doesn't run (we observe that
most of the times, but not all the times, it happens after a 302 given
by then upstream).

This is a normal behavior? If yes, have we any way to avoid those pikes
in the logs?

Dani
--
Dani Bento
Direção de Internet e Tecnologia
DTS/DVS
tlm: +351 91 429 72 81
dani@telecom.pt

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

nginx report a timestamp on upstream_response_time

Dani Bento 986 February 10, 2015 06:56AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 517 February 10, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 487 February 10, 2015 11:10AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 1079 February 10, 2015 12:54PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 492 February 10, 2015 01:12PM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 578 February 11, 2015 10:22AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 503 February 11, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 555 February 11, 2015 01:24PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 572 February 12, 2015 08:28AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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