# HG changeset patch # User Ruslan Ermilov # Date 1373006438 -14400 # Node ID ba3d6ade3513540f6103ad6b986f3598656c35a2 # Parent 7d1d53d4d29390e2423ef8591da44020efdf05b3 Elaborate on upstream server failures. Documented that {proxy,fastcgi,memcached}_next_upstream directives define what is considered an unsuccessful attempt of communication with a server. diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/en/docs/http/ngx_http_fastcgi_module.xml --- a/xml/en/docs/http/ngx_http_fastcgi_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="9">
@@ -695,6 +695,19 @@ transferring a response, fixing this is impossible. + +The directive also defines what is considered an unsuccessful attempt +of communication with a +. +The cases of error, timeout and +invalid_header are always considered unsuccessful attempts, +even if they are not specified in the directive. +The cases of http_500 and http_503 are +considered unsuccessful attempts only if they are specified in the directive. +The cases of http_403 and http_404 +are never considered unsuccessful attempts. + + diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/en/docs/http/ngx_http_memcached_module.xml --- a/xml/en/docs/http/ngx_http_memcached_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/en/docs/http/ngx_http_memcached_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="6">
@@ -162,6 +162,17 @@ transferring a response, fixing this is impossible. + +The directive also defines what is considered an unsuccessful attempt +of communication with a +. +The cases of error, timeout and +invalid_header are always considered unsuccessful attempts, +even if they are not specified in the directive. +The case of not_found +is never considered an unsuccessful attempt. + + diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/en/docs/http/ngx_http_proxy_module.xml --- a/xml/en/docs/http/ngx_http_proxy_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/en/docs/http/ngx_http_proxy_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="12">
@@ -883,6 +883,20 @@ transferring a response, fixing this is impossible. + +The directive also defines what is considered an unsuccessful attempt +of communication with a +. +The cases of error, timeout and +invalid_header are always considered unsuccessful attempts, +even if they are not specified in the directive. +The cases of http_500, http_502, +http_503 and http_504 are +considered unsuccessful attempts only if they are specified in the directive. +The cases of http_403 and http_404 +are never considered unsuccessful attempts. + + diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/en/docs/http/ngx_http_upstream_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="4">
@@ -123,14 +123,11 @@ by the fail_timeout parameter. By default, the number of unsuccessful attempts is set to 1. A value of zero disables accounting of attempts. -What is considered to be an unsuccessful attempt is configured by the +What is considered an unsuccessful attempt is defined by the , , and directives. -The http_403, http_404, -and not_found states are not considered as -unsuccessful attempts. fail_timeout=time diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/ru/docs/http/ngx_http_fastcgi_module.xml --- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="9">
@@ -692,6 +692,18 @@ то исправить это уже невозможно. + +Директива также определяет, что считается неудачной попыткой работы с +сервером. +Случаи error, timeout и +invalid_header +всегда считаются неудачными попытками, даже если они не указаны в директиве. +Случаи http_500 и http_503 +считаются неудачными попытками, только если они указаны в директиве. +Случаи http_403 и http_404 +никогда не считаются неудачными попытками. + + diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/ru/docs/http/ngx_http_memcached_module.xml --- a/xml/ru/docs/http/ngx_http_memcached_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_memcached_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="6">
@@ -161,6 +161,16 @@ то исправить это уже невозможно. + +Директива также определяет, что считается неудачной попыткой работы с +сервером. +Случаи error, timeout и +invalid_response +всегда считаются неудачными попытками, даже если они не указаны в директиве. +Случай not_found +никогда не считается неудачной попыткой. + + diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/ru/docs/http/ngx_http_proxy_module.xml --- a/xml/ru/docs/http/ngx_http_proxy_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="12">
@@ -880,6 +880,19 @@ то исправить это уже невозможно. + +Директива также определяет, что считается неудачной попыткой работы с +сервером. +Случаи error, timeout и +invalid_header +всегда считаются неудачными попытками, даже если они не указаны в директиве. +Случаи http_500, http_502, +http_503 и http_504 +считаются неудачными попытками, только если они указаны в директиве. +Случаи http_403 и http_404 +никогда не считаются неудачными попытками. + + diff -r 7d1d53d4d293 -r ba3d6ade3513 xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml Fri Jul 05 08:11:37 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml Fri Jul 05 10:40:38 2013 +0400 @@ -10,7 +10,7 @@ + rev="4">
@@ -125,12 +125,10 @@ заданного параметром fail_timeout. По умолчанию число попыток устанавливается равным 1. Нулевое значение запрещает учёт попыток. -Что считается неудачной попыткой, задаётся директивами +Что считается неудачной попыткой, определяется директивами , и . -Состояния http_403, http_404not_found не считаются неудачными попытками. fail_timeout=время