request_time 官网描述:request processing time in seconds with a milliseconds resolution; time elapsed between the first bytes were read from the client and the log write after the last bytes were sent to the client. 指的就是从接受用户请求的第一个字节到发送完响应数据的时间,即$request…
1.request_time 官网描述:request processing time in seconds with a milliseconds resolution; time elapsed between the first bytes were read from the client and the log write after the last bytes were sent to the client . 指的就是从接受用户请求的第一个字节到发送完响应数据的时间,即包括接收请…
笔者在根据nginx的accesslog中$request_time进行程序优化时,发现有个接口,直接返回数据,平均的$request_time也比较大.原来$request_time包含了(服务器)接收用户数据的时间,而真正程序的响应时间应该用$upstream_response_time. 下面介绍下2者的差别: 1.request_time官网描述:request processing time in seconds with a milliseconds resolution; time…
笔者在根据nginx的accesslog中$request_time进行程序优化时,发现有个接口,直接返回数据,平均的$request_time也比较大.原来$request_time包含了用户数据接收时间,而真正程序的响应时间应该用$upstream_response_time. 下面介绍下2者的差别: 1.request_time 官网描述:request processing time in seconds with a milliseconds resolution; time elap…