Mercurial > hg > nginx-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
739:89a4b7e22e24 | 740:46d70031bea9 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Core functionality" | 10 <module name="Core functionality" |
11 link="/en/docs/ngx_core_module.html" | 11 link="/en/docs/ngx_core_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="1"> | 13 rev="2"> |
14 | 14 |
15 <section id="example" name="Example Configuration"> | 15 <section id="example" name="Example Configuration"> |
16 | 16 |
17 <para> | 17 <para> |
18 <example> | 18 <example> |
544 | 544 |
545 </directive> | 545 </directive> |
546 | 546 |
547 | 547 |
548 <directive name="worker_processes"> | 548 <directive name="worker_processes"> |
549 <syntax><value>number</value></syntax> | 549 <syntax><value>number</value> | <literal>auto</literal></syntax> |
550 <default>1</default> | 550 <default>1</default> |
551 <context>main</context> | 551 <context>main</context> |
552 | 552 |
553 <para> | 553 <para> |
554 Defines the number of worker processes. | 554 Defines the number of worker processes. |
557 <para> | 557 <para> |
558 The optimal value depends on many factors including (but not | 558 The optimal value depends on many factors including (but not |
559 limited to) the number of CPU cores, the number of hard disk | 559 limited to) the number of CPU cores, the number of hard disk |
560 drives that store data, and load pattern. | 560 drives that store data, and load pattern. |
561 When in doubt, setting it to the number of available CPU cores | 561 When in doubt, setting it to the number of available CPU cores |
562 would be a good start. | 562 would be a good start (the value “<literal>auto</literal>” |
563 will try to autodetect it). | |
563 </para> | 564 </para> |
564 | 565 |
565 </directive> | 566 </directive> |
566 | 567 |
567 | 568 |