Syntax: | worker_processes |
---|---|
Default: | worker_processes 1; |
Context: | main |
Defines the number of worker processes.
The optimal value depends on many factors including (but not limited to) the number of CPU cores, the number of hard disk drives that store data, and load pattern. When one is in doubt, setting it to the number of available CPU cores would be a good start (the value “auto
” will try to autodetect it).
The auto
parameter is supported starting from versions 1.3.8 and 1.2.5.
Please login to continue.