changeset 1801:592f9fa804f6

Added info about shared memory to max_conns.
author Yaroslav Zhuravlev <yar@nginx.com>
date Wed, 28 Sep 2016 20:27:40 +0300
parents 9d722e4153ab
children 51e1c73cc027
files xml/en/docs/http/ngx_http_upstream_module.xml xml/en/docs/stream/ngx_stream_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml xml/ru/docs/stream/ngx_stream_upstream_module.xml
diffstat 4 files changed, 22 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml	Wed Sep 28 20:25:42 2016 +0300
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml	Wed Sep 28 20:27:40 2016 +0300
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_upstream_module"
         link="/en/docs/http/ngx_http_upstream_module.html"
         lang="en"
-        rev="50">
+        rev="51">
 
 <section id="summary">
 
@@ -157,11 +157,13 @@
 limits the maximum <value>number</value> of simultaneous active
 connections to the proxied server (1.11.5).
 Default value is zero, meaning there is no limit.
+If the server group does not reside in the <link id="zone">shared memory</link>,
+the limitation works per each worker process.
 <note>
-When <link id="keepalive"/> connections and multiple
-<link doc="../ngx_core_module.xml" id="worker_processes">workers</link>
-are enabled,
-the total number of connections to the proxied server
+If <link id="keepalive">idle keepalive</link> connections,
+multiple <link doc="../ngx_core_module.xml" id="worker_processes">workers</link>,
+and the <link id="zone">shared memory</link> are enabled,
+the total number of active and idle connections to the proxied server
 may exceed the <literal>max_conns</literal> value.
 </note>
 <note>
--- a/xml/en/docs/stream/ngx_stream_upstream_module.xml	Wed Sep 28 20:25:42 2016 +0300
+++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml	Wed Sep 28 20:27:40 2016 +0300
@@ -9,7 +9,7 @@
 <module name="Module ngx_stream_upstream_module"
         link="/en/docs/stream/ngx_stream_upstream_module.html"
         lang="en"
-        rev="18">
+        rev="19">
 
 <section id="summary">
 
@@ -149,9 +149,11 @@
 <literal>max_conns</literal>=<value>number</value>
 </tag-name>
 <tag-desc>
-limits the maximum <value>number</value> of simultaneous connections to the
-proxied server (1.11.5).
+limits the maximum <value>number</value> of simultaneous
+connections to the proxied server (1.11.5).
 Default value is zero, meaning there is no limit.
+If the server group does not reside in the <link id="zone">shared memory</link>,
+the limitation works per each worker process.
 <note>
 Prior to version 1.11.5, this parameter was available as part of our
 <commercial_version>commercial subscription</commercial_version>.
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml	Wed Sep 28 20:25:42 2016 +0300
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml	Wed Sep 28 20:27:40 2016 +0300
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_upstream_module"
         link="/ru/docs/http/ngx_http_upstream_module.html"
         lang="ru"
-        rev="50">
+        rev="51">
 
 <section id="summary">
 
@@ -159,10 +159,14 @@
 ограничивает максимальное <value>число</value> одновременных активных
 соединений к проксируемому серверу (1.11.5).
 Значение по умолчанию равно 0 и означает, что ограничения нет.
+Если группа не находится в <link id="zone">зоне разделяемой памяти</link>,
+то ограничение работает отдельно для каждого рабочего процесса.
 <note>
-При включённых <link id="keepalive">постоянных</link> соединениях и нескольких
+При включённых <link id="keepalive">неактивных постоянных</link> соединениях,
+нескольких
 <link doc="../ngx_core_module.xml" id="worker_processes">рабочих процессах</link>
-общее число соединений с проксируемым сервером
+и <link id="zone">зоне разделяемой памяти</link>,
+суммарное число активных и неактивных соединений с проксируемым сервером
 может превышать значение <literal>max_conns</literal>.
 </note>
 <note>
--- a/xml/ru/docs/stream/ngx_stream_upstream_module.xml	Wed Sep 28 20:25:42 2016 +0300
+++ b/xml/ru/docs/stream/ngx_stream_upstream_module.xml	Wed Sep 28 20:27:40 2016 +0300
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_upstream_module"
         link="/ru/docs/stream/ngx_stream_upstream_module.html"
         lang="ru"
-        rev="18">
+        rev="19">
 
 <section id="summary">
 
@@ -152,6 +152,8 @@
 ограничивает максимальное <value>число</value> одновременных
 соединений к проксируемому серверу (1.11.5).
 Значение по умолчанию равно 0 и означает, что ограничения нет.
+Если группа не находится в <link id="zone">зоне разделяемой памяти</link>,
+то ограничение работает отдельно для каждого рабочего процесса.
 <note>
 До версии 1.11.5 этот параметр был доступен как часть
 <commercial_version>коммерческой подписки</commercial_version>.