xin

Directive reference

worker_connections

Sets the maximum simultaneous connections per worker.

Syntaxworker_connections number;
Contextsevents
Defaultworker_connections 512;

Behavior

The bound includes client and upstream connections. Size the process file-descriptor limit for both sides of proxied traffic.

Example

events {
    worker_connections 4096;
}

Related directives

worker_processes