# HG changeset patch # User Yaroslav Zhuravlev # Date 1404321590 -14400 # Node ID 2246339a6a939f6e0f10251434f2636b341b88ec # Parent 019f8273ee24c2809f4600ed584df0e786250dee Upstream: added IDs for "server" and "health_check" params. 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="27">
@@ -145,12 +145,16 @@ multiple servers at once. The following parameters can be defined: -weight=number + +weight=number + sets the weight of the server, by default, 1. -max_fails=number + +max_fails=number + sets the number of unsuccessful attempts to communicate with the server that should happen in the duration set by the fail_timeout @@ -167,7 +171,9 @@ What is considered an unsuccessful attem directives. -fail_timeout=time + +fail_timeout=time + sets @@ -185,13 +191,17 @@ and the period of time the server will b By default, the parameter is set to 10 seconds. -backup + +backup + marks the server as a backup server. It will be passed requests when the primary servers are unavailable. -down + +down + marks the server as permanently unavailable; used along with the directive. @@ -243,18 +253,22 @@ http { -route=string + +route=string + sets the server route name. -slow_start=time + +slow_start=time + sets the time during which the server will recover its weight from zero to a nominal value, when unhealthy server becomes healthy, or when the server becomes available after a period of time -it was considered unavailable. +it was considered unavailable. Default value is zero, i.e. slow start is disabled. @@ -516,16 +530,7 @@ weighted round-robin balancing method. - - [interval=time] - - [fails=number] - [passes=number] - [uri=uri] - [match=name] - +[parameters] location @@ -536,40 +541,50 @@ Enables periodic health checks of the se The following optional parameters are supported: - + - -interval + +interval=time + + sets the interval between two consecutive health checks, by default, 5 seconds; - + - -fails + +fails=number + + sets the number of consecutive failed health checks of a particular server after which this server will be considered unhealthy, by default, 1; - + - -passes + +passes=number + + sets the number of consecutive passed health checks of a particular server after which the server will be considered healthy, by default, 1; - + - -uri + +uri=uri + + defines the URI used in health check requests, by default, “/”; - + - -match + +match=name + + specifies the match block configuring the tests that a response should pass in order for a health check to pass; by default, the response should have status code 2xx or 3xx. - + 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 @@ -116,12 +116,16 @@ 5 запросов на backend1.example.com Могут быть заданы следующие параметры: -weight=число + +weight=число + задаёт вес сервера, по умолчанию 1. -max_fails=число + +max_fails=число + задаёт число неудачных попыток работы с сервером, которые должны произойти в течение времени, заданного параметром fail_timeout, @@ -137,7 +141,9 @@ 5 запросов на backend1.example.com . -fail_timeout=время + +fail_timeout=время + задаёт @@ -155,13 +161,17 @@ 5 запросов на backend1.example.com По умолчанию параметр равен 10 секундам. -backup + +backup + помечает сервер как запасной сервер. На него будут передаваться запросы в случае, если не работают основные серверы. -down + +down + помечает сервер как постоянно недоступный; используется совместно с директивой . @@ -212,19 +222,23 @@ http { -route=строка + +route=строка + задаёт имя маршрута к серверу. -slow_start=время + +slow_start=время + задаёт время, в течение которого вес сервера восстановится от нуля до своего номинального значения в ситуации, когда неработоспособный (unhealthy) сервер вновь становится работоспособным (healthy) или когда сервер становится доступным по прошествии времени, -в течение которого он считался недоступным. +в течение которого он считался недоступным. Значение по умолчанию равно нулю и означает, что медленный старт выключен.