# HG changeset patch # User Yaroslav Zhuravlev # Date 1475083660 -10800 # Node ID 592f9fa804f68136debfe2270d35695ee4a15706 # Parent 9d722e4153ab3c0a6935679949ffad54d7bdf183 Added info about shared memory to max_conns. diff --git a/xml/en/docs/http/ngx_http_upstream_module.xml b/xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml +++ b/xml/en/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ + rev="51">
@@ -157,11 +157,13 @@ sets the weight of the server, by defaul limits the maximum number 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 shared memory, +the limitation works per each worker process. -When connections and multiple -workers -are enabled, -the total number of connections to the proxied server +If idle keepalive connections, +multiple workers, +and the shared memory are enabled, +the total number of active and idle connections to the proxied server may exceed the max_conns value. diff --git a/xml/en/docs/stream/ngx_stream_upstream_module.xml b/xml/en/docs/stream/ngx_stream_upstream_module.xml --- a/xml/en/docs/stream/ngx_stream_upstream_module.xml +++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml @@ -9,7 +9,7 @@ + rev="19">
@@ -149,9 +149,11 @@ sets the weight of the server, by defaul max_conns=number -limits the maximum number of simultaneous connections to the -proxied server (1.11.5). +limits the maximum number 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 shared memory, +the limitation works per each worker process. Prior to version 1.11.5, this parameter was available as part of our commercial subscription. diff --git a/xml/ru/docs/http/ngx_http_upstream_module.xml b/xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ + rev="51">
@@ -159,10 +159,14 @@ 5 запросов на backend1.example.com ограничивает максимальное число одновременных активных соединений к проксируемому серверу (1.11.5). Значение по умолчанию равно 0 и означает, что ограничения нет. +Если группа не находится в зоне разделяемой памяти, +то ограничение работает отдельно для каждого рабочего процесса. -При включённых постоянных соединениях и нескольких +При включённых неактивных постоянных соединениях, +нескольких рабочих процессах -общее число соединений с проксируемым сервером +и зоне разделяемой памяти, +суммарное число активных и неактивных соединений с проксируемым сервером может превышать значение max_conns. diff --git a/xml/ru/docs/stream/ngx_stream_upstream_module.xml b/xml/ru/docs/stream/ngx_stream_upstream_module.xml --- a/xml/ru/docs/stream/ngx_stream_upstream_module.xml +++ b/xml/ru/docs/stream/ngx_stream_upstream_module.xml @@ -9,7 +9,7 @@ + rev="19">
@@ -152,6 +152,8 @@ 5 соединений на backend1.example.com:12345 ограничивает максимальное число одновременных соединений к проксируемому серверу (1.11.5). Значение по умолчанию равно 0 и означает, что ограничения нет. +Если группа не находится в зоне разделяемой памяти, +то ограничение работает отдельно для каждого рабочего процесса. До версии 1.11.5 этот параметр был доступен как часть коммерческой подписки.