xin

Directive reference

worker_processes

Sets the number of serving workers.

Syntaxworker_processes number | auto;
Contextsmain
Defaultworker_processes 1;

Behavior

The auto value selects the available CPU count. Xin uses the value to size its serving runtime while preserving nginx's configuration surface.

Example

worker_processes auto;

Related directives

worker_connections