If requests are delayed by nginx rate limiting (rate limit exceeded, but within burst rate), is this delay included in the nginx $request_time
total?
The nginx docs state that $request_time
is "time elapsed since the first bytes were read from the client"
If a request is delayed, is that before or after request bytes are read from the client? I assume after, since rate limiting can be based on request headers, etc.
Is there a way to separate total request time and time spent specifically on sending/receiving network communication to/from the client?
Note: I am aware of $upstream_response_time
, and am logging that. I specifically am concerned with differentiating specific operations within nginx (caching, rate limiting, etc), and client-side network communications.