Core directives

worker_connections directive

Sets the maximum simultaneous connections opened by a worker, including upstream connections. Context: events. Documented default: 512. Actual capacity also depends on available file descriptors. Partial snippet.

Formal Syntax & Structure

nginx syntaxnginx
worker_connections number;

Parameters & Attributes

NameTypeDescription
numberintegerPer-worker connection ceiling

Working Example

Example Snippetnginx
events { worker_connections 32; }
Nginx Reference