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

NameTypeDescription
nameidentifierShared upstream state name.
sizebyte sizeProvide when first allocating the zone; omission can reuse an existing allocation.

Working Example

Example Snippetnginx
zone bounded_state 64k;
Nginx Reference