HTTP upstream directives

least_time directive (HTTP upstream)

HTTP upstream context. OSS from 1.31.0 according to checked docs; previously commercial. Considers latency and active connections.

Formal Syntax & Structure

nginx syntaxnginx
least_time header | last_byte [inflight];

Parameters & Attributes

NameTypeDescription
metricheader | last_byteChoose latency measurement endpoint; combines latency and active connections.
inflightliteral inflightInclude unfinished requests; OSS least_time from 1.31.0, previously commercial.

Working Example

Example Snippetnginx
least_time header;
Nginx Reference