Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_response_time ?

Maxim Dounin
March 10, 2014 06:36PM
Hello!

On Mon, Mar 10, 2014 at 01:51:54PM +0100, etienne.champetier@free.fr wrote:

> Hi
>
> I'm using nginx in front of fastcgi servers (fastcgi_pass ...),
> I would like to have in my logs the response_time and the fastcgi_response_time (which doesn't exist),
> is it possible?
>
> I've tried upstream_response_time but it's always the same value as fastcgi_response_time,
> even with slow connection (simulated with Network Link Conditioner on a mac)

There are two variables available:

- $request_time, time elapsed since first bytes were read from a
client;

- $upstream_response_time, time elapsed since a request was sent to
an upstream till last bytes of a response were got from an
upstream.

Most noticeable difference between these variables is that
$request_time includes time taken to read a request from a client.
This difference can be easily seen by typing a request by hand,
line by line, in telnet.

[1] http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request_time
[2] http://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables

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

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

fastcgi_response_time ?

Anonymous User March 10, 2014 08:54AM

Re: fastcgi_response_time ?

Maxim Dounin March 10, 2014 06:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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