Mercurial > hg > nginx-site
diff xml/en/docs/ngx_core_module.xml @ 740:46d70031bea9
Documented the recently added "auto" parameter of the
"worker_processes" directive.
author | Andrey Belov <defan@nginx.com> |
---|---|
date | Tue, 23 Oct 2012 09:11:30 +0000 |
parents | 77a3314c74a7 |
children | 3a2e35f4c279 |
line wrap: on
line diff
--- a/xml/en/docs/ngx_core_module.xml +++ b/xml/en/docs/ngx_core_module.xml @@ -10,7 +10,7 @@ <module name="Core functionality" link="/en/docs/ngx_core_module.html" lang="en" - rev="1"> + rev="2"> <section id="example" name="Example Configuration"> @@ -546,7 +546,7 @@ worker_priority -10; <directive name="worker_processes"> -<syntax><value>number</value></syntax> +<syntax><value>number</value> | <literal>auto</literal></syntax> <default>1</default> <context>main</context> @@ -559,7 +559,8 @@ The optimal value depends on many factor limited to) the number of CPU cores, the number of hard disk drives that store data, and load pattern. When in doubt, setting it to the number of available CPU cores -would be a good start. +would be a good start (the value “<literal>auto</literal>” +will try to autodetect it). </para> </directive>