Stream upstream directives

zone (stream)

upstream context; shares runtime state across workers.

Formal Syntax & Structure

nginx syntaxnginx
zone name [size];

Parameters & Attributes

NameTypeDescription
nameidentifierShared memory zone name.
sizesizeAllocate shared state; may be omitted if zone already allocated.

Working Example

Example Snippetnginx
zone echo_state 64k;
Nginx Reference