Reference
Reference: server.limits
server.limits.body_read_timeout
| Syntax | body_read_timeout: <duration> (e.g. 30s) |
| Default | 30s |
| Context | server.limits |
| Reload | applies on reload |
Maximum gap between request body chunks.
server.limits.h2_max_concurrent_streams
| Syntax | h2_max_concurrent_streams: <integer> |
| Default | 128 |
| Context | server.limits |
| Reload | applies on reload |
HTTP/2 streams a client may have open at once on one connection.
server.limits.header_read_timeout
| Syntax | header_read_timeout: <duration> (e.g. 30s) |
| Default | 15s |
| Context | server.limits |
| Reload | applies on reload |
HTTP/1: time allowed to receive a complete request head; also bounds keep-alive idle.
server.limits.idle_timeout
| Syntax | idle_timeout: <duration> (e.g. 30s) |
| Default | 60s |
| Context | server.limits |
| Reload | applies on reload |
Close connections (h1 and h2) with no in-flight request for this long.
server.limits.max_connections
| Syntax | max_connections: <integer> |
| Default | 10000 |
| Context | server.limits |
| Reload | needs a restart |
Open client connections across all listeners; further connections wait in the kernel backlog.
server.limits.max_header_bytes
| Syntax | max_header_bytes: <size> (e.g. 16KiB) |
| Default | 16KiB |
| Context | server.limits |
| Reload | applies on reload |
Total size of a request’s headers.
server.limits.max_headers
| Syntax | max_headers: <integer> |
| Default | 100 |
| Context | server.limits |
| Reload | applies on reload |
Number of request headers.
server.limits.max_request_body_bytes
| Syntax | max_request_body_bytes: <size> (e.g. 16KiB) |
| Default | 10MiB |
| Context | server.limits |
| Reload | applies on reload |
Size of a request body.
server.limits.max_upgraded_connections
| Syntax | max_upgraded_connections: <integer> |
| Default | 10000 |
| Context | server.limits |
| Reload | read when the process starts |
Concurrent upgraded (WebSocket) tunnels across all applications.
server.limits.max_uri_bytes
| Syntax | max_uri_bytes: <size> (e.g. 16KiB) |
| Default | 8KiB |
| Context | server.limits |
| Reload | applies on reload |
Length of the request target (path and query); longer requests get 414.
server.limits.shutdown_delay
| Syntax | shutdown_delay: <duration> (e.g. 30s) |
| Default | 0s |
| Context | server.limits |
| Reload | applies on reload |
After SIGTERM, keep serving for this long while /readyz answers 503, so load balancers stop sending new requests before the drain starts.
server.limits.shutdown_timeout
| Syntax | shutdown_timeout: <duration> (e.g. 30s) |
| Default | 30s |
| Context | server.limits |
| Reload | applies on reload |
Time in-flight requests get to finish when the server stops.
server.limits.tls_handshake_timeout
| Syntax | tls_handshake_timeout: <duration> (e.g. 30s) |
| Default | 10s |
| Context | server.limits |
| Reload | applies on reload |
Time a client has to complete the TLS handshake.
server.limits.upgraded_idle_timeout
| Syntax | upgraded_idle_timeout: <duration> (e.g. 30s) |
| Default | 300s |
| Context | server.limits |
| Reload | read when the process starts |
Close an upgraded tunnel with no traffic in either direction for this long.
server.limits.write_timeout
| Syntax | write_timeout: <duration> (e.g. 30s) |
| Default | 60s |
| Context | server.limits |
| Reload | applies on reload |
Close a connection whose writes make no progress for this long (slow readers).