changeset 545:e97b46d1842d

Documented the "worker_connections" directive.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 21 Jun 2012 10:58:32 +0000
parents 1507ec5ba69a
children 694db9597ee0
files xml/en/docs/ngx_core_module.xml xml/ru/docs/ngx_core_module.xml
diffstat 2 files changed, 46 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/ngx_core_module.xml
+++ b/xml/en/docs/ngx_core_module.xml
@@ -331,6 +331,29 @@ that of <value>user</value> is used.
 </directive>
 
 
+<directive name="worker_connections">
+<syntax><value>number</value></syntax>
+<default>512</default>
+<context>events</context>
+
+<para>
+Sets the maximum number of simultaneous connections that
+can be opened by a worker process.
+</para>
+
+<para>
+It should be kept in mind that this number includes all connections
+(e.g. connections with proxied servers, among other things),
+not only connections with clients.
+Another consideration is that the actual number of simultaneous
+connections may not exceed the current limit on
+the maximum number of open files, see
+<link id="worker_rlimit_nofile"/>.
+</para>
+
+</directive>
+
+
 <directive name="worker_cpu_affinity">
 <syntax><value>cpumask</value> ...</syntax>
 <default/>
--- a/xml/ru/docs/ngx_core_module.xml
+++ b/xml/ru/docs/ngx_core_module.xml
@@ -328,6 +328,29 @@ timer_resolution 100ms;
 </directive>
 
 
+<directive name="worker_connections">
+<syntax><value>число</value></syntax>
+<default>512</default>
+<context>events</context>
+
+<para>
+Задаёт максимальное число соединений, которое одновременно
+может открыть рабочий процесс.
+</para>
+
+<para>
+Следует иметь в виду, что в это число входят все соединения
+(в том числе, например, соединения с проксируемыми серверами),
+а не только соединения с клиентами.
+Стоит также учитывать, что фактическое число одновременных
+соединений не может превышать действующего ограничения на
+максимальное число открытых файлов,
+см. <link id="worker_rlimit_nofile"/>.
+</para>
+
+</directive>
+
+
 <directive name="worker_cpu_affinity">
 <syntax><value>маска_CPU</value> ...</syntax>
 <default/>