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
| Name | Type | Description |
|---|---|---|
| metric | header | last_byte | Choose latency measurement endpoint; combines latency and active connections. |
| inflight | literal inflight | Include unfinished requests; OSS least_time from 1.31.0, previously commercial. |
Working Example
Example Snippetnginx
least_time header;