HTTP upstream directives
zone directive (HTTP upstream)
HTTP upstream context; since 1.9.0. Shares peer configuration and runtime state across worker processes.
Formal Syntax & Structure
nginx syntaxnginx
zone name [size];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | identifier | Shared upstream state name. |
| size | byte size | Provide when first allocating the zone; omission can reuse an existing allocation. |
Working Example
Example Snippetnginx
zone bounded_state 64k;