# HG changeset patch # User Yaroslav Zhuravlev # Date 1394806627 0 # Node ID 594093ef96b1654caee04523ea42b9e66a509b46 # Parent 7d3d2bf39190896431a242998a88f11e2e353012 Upstream: documented the "queue" directive. 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="14">
@@ -191,7 +191,9 @@ This functionality is available as part -max_conns=number + +max_conns=number + limits the maximum number of simultaneous connections to the proxied server (1.5.9). @@ -852,6 +854,41 @@ An equivalent + + +number +[timeout=time] + +upstream +1.5.12 + + +If an upstream server cannot be selected immediately +while processing a request, +and there are the servers in the group that have reached the + limit, +the request will be placed into the queue. +The directive specifies the maximum number of requests that can be in the queue +at the same time. +If the queue is filled up, +or the server to pass the request to cannot been selected within +the time period specified in the timeout parameter, +an error will be returned to the client. + + + +The default value of the timeout parameter is 60 seconds. + + + + +This directive is available as part of our . + + + + + + 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 @@ -361,6 +361,40 @@ server { + + +число +[timeout=время] + +upstream +1.5.12 + + +Если при обработке запроса невозможно сразу выбрать сервер группы +и в группе есть серверы, у которых число соединений достигло +ограничения , +запрос будет помещён в очередь. +Директива задаёт максимальное число запросов, которые могут одновременно +находиться в очереди. +Если очередь переполнена +или за время, задаваемое параметром timeout, +так и не удастся выбрать сервер для передачи ему запроса, +клиенту будет возвращена ошибка. + + + +По умолчанию параметр timeout равен 60 секундам. + + + + +Эта директива доступна как часть . + + + + + +