How can request_time be less than upstream_response_time in nginx?
$upstream_response_time calculated by clock_gettime(CLOCK_MONOTONIC_COARSE)
, and by default it can be in past for 4 milliseconds, on opposite, $request_time calculated by gettimeofday()
. So eventually upstream_response_time might be larger, than response_time.
Based on nginx forum thread