Welcome! Log In Create A New Profile

Advanced

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin
February 10, 2015 01:12PM
Hello!

On Tue, Feb 10, 2015 at 05:51:46PM +0000, Dani Bento wrote:

[...]

> But in ngx_http_upstream_init_request we have:
>
> 559 } else {
> 560
> 561 u->state = ngx_array_push(r->upstream_states);
> 562 if (u->state == NULL) {
> 563 ngx_http_upstream_finalize_request(r, u,
> 564 NGX_HTTP_INTERNAL_SERVER_ERROR);
> 565 return;
> 566 }
> 567
> 568 ngx_memzero(u->state, sizeof(ngx_http_upstream_state_t));
> 569 }
>
> The u->state->response_sec and u->state->response_mset are
> initialized with ngx_timeofday() in the first case, but are only
> zeroed in the second case.

An empty state added in the ngx_http_upstream_init_request() marks
switching to another upstream{} group, to be shown as ":" in the
corresponding variables.

See ngx_http_upstream_response_time_variable() for details.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
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 1084 February 10, 2015 06:56AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 572 February 10, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 538 February 10, 2015 11:10AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 1158 February 10, 2015 12:54PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 545 February 10, 2015 01:12PM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 634 February 11, 2015 10:22AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 564 February 11, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 612 February 11, 2015 01:24PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 626 February 12, 2015 08:28AM



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

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready