Mercurial > hg > nginx-site
changeset 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 | 89a4b7e22e24 |
children | 082a725038db |
files | xml/en/docs/ngx_core_module.xml xml/ru/docs/ngx_core_module.xml |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
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>
--- a/xml/ru/docs/ngx_core_module.xml +++ b/xml/ru/docs/ngx_core_module.xml @@ -10,7 +10,7 @@ <module name="Основная функциональность" link="/ru/docs/ngx_core_module.html" lang="ru" - rev="1"> + rev="2"> <section id="example" name="Пример конфигурации"> @@ -544,7 +544,7 @@ worker_priority -10; <directive name="worker_processes"> -<syntax><value>число</value></syntax> +<syntax><value>число</value> | <literal>auto</literal></syntax> <default>1</default> <context>main</context> @@ -557,7 +557,9 @@ worker_priority -10; (но не ограничиваясь ими) число процессорных ядер, число жёстких дисков с данными и картину нагрузок. Если затрудняетесь в выборе правильного значения, можно начать -с установки его равным числу процессорных ядер. +с установки его равным числу процессорных ядер +(значение “<literal>auto</literal>” пытается определить его +автоматически). </para> </directive>