Stream upstream directives
zone (stream)
upstream context; shares runtime state across workers.
Formal Syntax & Structure
nginx syntaxnginx
zone name [size];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | identifier | Shared memory zone name. |
| size | size | Allocate shared state; may be omitted if zone already allocated. |
Working Example
Example Snippetnginx
zone echo_state 64k;