# HG changeset patch # User Ruslan Ermilov # Date 1345879493 0 # Node ID 841118e33f4131599fd7e0452da4ba92525c2ee7 # Parent 703d981c8e12ab938f75166ac1921ea2c0194214 Refined the text about cache of connections to upstream servers. diff -r 703d981c8e12 -r 841118e33f41 xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml Thu Aug 23 12:15:29 2012 +0000 +++ b/xml/en/docs/http/ngx_http_upstream_module.xml Sat Aug 25 07:24:53 2012 +0000 @@ -243,16 +243,14 @@ The connections 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. -It should be noted that keepalive 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 keepalive directive +does not limit the total number of connections that nginx worker process +can open to upstream servers. The connections parameter should be set low enough to allow upstream servers to process additional new incoming connections as well. diff -r 703d981c8e12 -r 841118e33f41 xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml Thu Aug 23 12:15:29 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml Sat Aug 25 07:24:53 2012 +0000 @@ -244,15 +244,14 @@ Параметр соединения устанавливает максимальное число -постоянных соединений с серверами группы, которые будут сохраняться -в кэше каждого рабочего процесса. -При превышении указанного числа неактивных постоянных соединений -с серверами группы самые старые соединения закрываются. +неактивных постоянных соединений с серверами группы, которые будут +сохраняться в кэше каждого рабочего процесса. +При превышении этого числа наиболее давно не используемые соединения +закрываются. -Следует отметить, что директива keepalive -не ограничивает общее число соединений, которые рабочие процессы -nginx могут открыть с серверами группы. -Новые соединения всегда создаются по мере необходимости. +Следует особо отметить, что директива keepalive +не ограничивает общее число соединений с серверами группы, которые +рабочие процессы nginx могут открыть. Параметр соединения следует устанавливать достаточно консервативно для обеспечения возможности обработки серверами группы новых входящих соединений.