changeset 654:841118e33f41

Refined the text about cache of connections to upstream servers.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 25 Aug 2012 07:24:53 +0000
parents 703d981c8e12
children 93d2a54d247c
files xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml
diffstat 2 files changed, 13 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml
@@ -243,16 +243,14 @@ Activates cache of connections to upstre
 
 <para>
 The <value>connections</value> parameter sets the maximum number of
-keepalive connections to upstream servers that are retained in
+idle keepalive connections to upstream servers that are retained in
 the cache per one worker process.
-If there are more idle connections to retain to an upstream than
-are specified by this number, the least recently used ones will
-be closed.
+When this number is exceeded, the least recently used connections
+are closed.
 <note>
-It should be noted that <literal>keepalive</literal> directive
-does not limit the total number of connections that nginx worker
-process can open to upstream servers.
-The new connections are always created on demand.
+It should be particularly noted that <literal>keepalive</literal> directive
+does not limit the total number of connections that nginx worker process
+can open to upstream servers.
 The <value>connections</value> parameter should be set low enough
 to allow upstream servers to process additional new incoming
 connections as well.
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml
@@ -244,15 +244,14 @@ upstream backend {
 
 <para>
 Параметр <value>соединения</value> устанавливает максимальное число
-постоянных соединений с серверами группы, которые будут сохраняться
-в кэше каждого рабочего процесса.
-При превышении указанного числа неактивных постоянных соединений
-с серверами группы самые старые соединения закрываются.
+неактивных постоянных соединений с серверами группы, которые будут
+сохраняться в кэше каждого рабочего процесса.
+При превышении этого числа наиболее давно не используемые соединения
+закрываются.
 <note>
-Следует отметить, что директива <literal>keepalive</literal>
-не ограничивает общее число соединений, которые рабочие процессы
-nginx могут открыть с серверами группы.
-Новые соединения всегда создаются по мере необходимости.
+Следует особо отметить, что директива <literal>keepalive</literal>
+не ограничивает общее число соединений с серверами группы, которые
+рабочие процессы nginx могут открыть.
 Параметр <value>соединения</value> следует устанавливать
 достаточно консервативно для обеспечения возможности
 обработки серверами группы новых входящих соединений.