# HG changeset patch # User Yaroslav Zhuravlev # Date 1490374403 -10800 # Node ID 25962922969a7a760c2a3275009f70f8e6418450 # Parent 6b6d0e844bf748ad0c4d45cfb36ee60566dccd6a Moved info from stream "health_check" to intro. diff -r 6b6d0e844bf7 -r 25962922969a xml/en/docs/stream/ngx_stream_upstream_hc_module.xml --- a/xml/en/docs/stream/ngx_stream_upstream_hc_module.xml Fri Mar 24 19:48:53 2017 +0300 +++ b/xml/en/docs/stream/ngx_stream_upstream_hc_module.xml Fri Mar 24 19:53:23 2017 +0300 @@ -9,7 +9,7 @@ + rev="2">
@@ -22,6 +22,15 @@ +If a health check fails, the server will be considered unhealthy. +If several health checks are defined for the same group of servers, +a single failure of any check will make the corresponding server be +considered unhealthy. +Client connections are not passed to unhealthy servers +and servers in the “checking” state. + + + This module is available as part of our commercial subscription. @@ -52,6 +61,19 @@ health_check; } +With this configuration, nginx +will check the ability to establish a TCP connection to each server +in the tcp group every five seconds. +When a connection to the server cannot be established, +the health check will fail, and the server will +be considered unhealthy. + + + +Health checks can also be configured to test data obtained from the server. +Tests are configured separately using the directive +and referenced in the match parameter +of the directive.
@@ -158,40 +180,6 @@ - -For example, - -server { - proxy_pass backend; - health_check; -} - -will check the ability to establish a TCP connection to each server -in the backend group every five seconds. -When a connection to the server cannot be established, -the health check will fail, and the server will -be considered unhealthy. -Client connections are not passed to unhealthy servers -and servers in the “checking” state. - - - -Health checks can also be configured to test data obtained from the server. -Tests are configured separately using the directive -and referenced in the match parameter. - - - -The server group must reside in the -shared memory. - - - -If several health checks are defined for the same group of servers, -a single failure of any check will make the corresponding server be -considered unhealthy. - - diff -r 6b6d0e844bf7 -r 25962922969a xml/ru/docs/stream/ngx_stream_upstream_hc_module.xml --- a/xml/ru/docs/stream/ngx_stream_upstream_hc_module.xml Fri Mar 24 19:48:53 2017 +0300 +++ b/xml/ru/docs/stream/ngx_stream_upstream_hc_module.xml Fri Mar 24 19:53:23 2017 +0300 @@ -9,7 +9,7 @@ + rev="2">
@@ -22,6 +22,16 @@ +Если проверка работоспособности была неуспешной, +то сервер признаётся неработоспособным. +Если для группы задано несколько проверок, +то при любой неуспешной проверке соответствующий сервер будет +считаться неработоспособным. +На неработоспособные серверы и серверы в состоянии “checking” +клиентские соединения передаваться не будут. + + + Модуль доступен как часть коммерческой подписки. @@ -52,6 +62,18 @@ health_check; } +Для каждого сервера группы backend +с интервалом в 5 секунд проверяется возможность установки TCP-соединения. +Если соединение с сервером не может быть установлено, +проверка считается неуспешной и сервер +признаётся неработоспособным. + + + +Проверки работоспособности могут тестировать данные, полученные от сервера. +Тесты настраиваются отдельно при помощи директивы +и указываются в параметре match директивы +.
@@ -158,40 +180,6 @@ - -В примере - -server { - proxy_pass backend; - health_check; -} - -для каждого сервера группы backend -с интервалом в 5 секунд проверяется возможность установки TCP-соединения. -Если соединение с сервером не может быть установлено, -проверка считается неуспешной и сервер -признаётся неработоспособным. -На неработоспособные серверы и серверы в состоянии “checking” -клиентские соединения передаваться не будут. - - - -Проверки работоспособности могут тестировать данные, полученные от сервера. -Тесты настраиваются отдельно при помощи директивы -и указываются в параметре match. - - - -Группа должна находиться в -зоне разделяемой памяти. - - - -Если для группы задано несколько проверок, -то при любой неуспешной проверке соответствующий сервер будет -считаться неработоспособным. - -