You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/11/11 02:34:33 UTC

[apisix] branch master updated: docs: add the type field of passive health check (#8255)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4b35442 docs: add the type field of passive health check (#8255)
dc4b35442 is described below

commit dc4b35442dc8424a936d08fcb05f6d311610fb26
Author: chengxiaolan <30...@users.noreply.github.com>
AuthorDate: Fri Nov 11 10:34:28 2022 +0800

    docs: add the type field of passive health check (#8255)
---
 docs/en/latest/tutorials/health-check.md | 3 ++-
 docs/zh/latest/tutorials/health-check.md | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/en/latest/tutorials/health-check.md b/docs/en/latest/tutorials/health-check.md
index ca407e700..442369ebb 100644
--- a/docs/en/latest/tutorials/health-check.md
+++ b/docs/en/latest/tutorials/health-check.md
@@ -76,12 +76,13 @@ Since unhealthy nodes cannot receive requests, nodes cannot be re-marked as heal
 | upstream.checks.active.unhealthy.http_failures  | Active check (unhealthy node)  | integer    | `1` to `254`         | 5                                                                                             | Active check (unhealthy node) HTTP or HTTPS type check, determine the number of times that the node is not healthy.  |
 | upstream.checks.active.unhealthy.tcp_failures   | Active check (unhealthy node)  | integer    | `1` to `254`         | 2                                                                                             | Active check (unhealthy node) TCP type check, determine the number of times that the node is not healthy.            |
 | upstream.checks.active.unhealthy.timeouts       | Active check (unhealthy node)  | integer    | `1` to `254`         | 3                                                                                             | Active check (unhealthy node) to determine the number of timeouts for unhealthy nodes.                              |
+| upstream.checks.passive.type      | Passive check  | string    | `http` `https` `tcp`    | http                                                                                             | The type of passive check.                             |
 | upstream.checks.passive.healthy.http_statuses   | Passive check (healthy node)   | array      | `200` to `599`       | [200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308] | Passive check (healthy node) HTTP or HTTPS type check, the HTTP status code of the healthy node.                     |
 | upstream.checks.passive.healthy.successes       | Passive check (healthy node)   | integer    | `0` to `254`         | 5                                                                                             | Passive checks (healthy node) determine the number of times a node is healthy.                                       |
 | upstream.checks.passive.unhealthy.http_statuses | Passive check (unhealthy node) | array      | `200` to `599`       | [429, 500, 503]                                                                               | Passive check (unhealthy node) HTTP or HTTPS type check, the HTTP status code of the non-healthy node.               |
 | upstream.checks.passive.unhealthy.tcp_failures  | Passive check (unhealthy node) | integer    | `0` to `254`         | 2                                                                                             | Passive check (unhealthy node) When TCP type is checked, determine the number of times that the node is not healthy. |
 | upstream.checks.passive.unhealthy.timeouts      | Passive check (unhealthy node) | integer    | `0` to `254`         | 7                                                                                             | Passive checks (unhealthy node) determine the number of timeouts for unhealthy nodes.                                |
-| upstream.checks.passive.unhealthy.http_failures | Passive check (unhealthy node) | integer    | `0` to `254`         | 5                                                                                             | Passive check (unhealthy node) The number of times that the node is not healthy during HTTP or HTTPS type checking.  |
+| upstream.checks.passive.unhealthy.http_failures | Passive check (unhealthy node) | integer    | `0` to `254`         | 5                                                                                                           | Passive check (unhealthy node) The number of times that the node is not healthy during HTTP or HTTPS type checking.  |
 
 ### Configuration example
 
diff --git a/docs/zh/latest/tutorials/health-check.md b/docs/zh/latest/tutorials/health-check.md
index 55ddcfe57..dc68beed6 100644
--- a/docs/zh/latest/tutorials/health-check.md
+++ b/docs/zh/latest/tutorials/health-check.md
@@ -75,12 +75,13 @@ description: 本文介绍了如何使用 API 网关 Apache APISIX 的健康检
 | upstream.checks.active.unhealthy.http_failures  | 主动检查(非健康节点)| integer | `1` 至 `254`         | 5                                                                                               | 主动检查(非健康节点)HTTP 或 HTTPS 类型检查时,确定节点非健康的次数。 |
 | upstream.checks.active.unhealthy.tcp_failures   | 主动检查(非健康节点)| integer | `1` 至 `254`         | 2                                                                                               | 主动检查(非健康节点)TCP 类型检查时,确定节点非健康的次数。 |
 | upstream.checks.active.unhealthy.timeouts       | 主动检查(非健康节点)| integer | `1` 至 `254`         | 3                                                                                               | 主动检查(非健康节点)确定节点非健康的超时次数。  |
+| upstream.checks.passive.type       | 被动检查 | string | `http` `https` `tcp`         | http                                                                                               | 被动检查的类型。  |
 | upstream.checks.passive.healthy.http_statuses   | 被动检查(健康节点)|  array   | `200` 至 `599`       | [200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308] | 被动检查(健康节点)HTTP 或 HTTPS 类型检查时,健康节点的 HTTP 状态码。 |
 | upstream.checks.passive.healthy.successes       | 被动检查(健康节点)|  integer | `0` 至 `254`         | 5                                                                                               | 被动检查(健康节点)确定节点健康的次数。              |
 | upstream.checks.passive.unhealthy.http_statuses | 被动检查(非健康节点)| array   | `200` 至 `599`       | [429, 500, 503]                                                                                 | 被动检查(非健康节点)HTTP 或 HTTPS 类型检查时,非健康节点的 HTTP 状态码。 |
 | upstream.checks.passive.unhealthy.tcp_failures  | 被动检查(非健康节点)| integer | `0` 至 `254`         | 2                                                                                               | 被动检查(非健康节点)TCP 类型检查时,确定节点非健康的次数。 |
 | upstream.checks.passive.unhealthy.timeouts      | 被动检查(非健康节点)| integer | `0` 至 `254`         | 7                                                                                               | 被动检查(非健康节点)确定节点非健康的超时次数。  |
-| upstream.checks.passive.unhealthy.http_failures | 被动检查(非健康节点)| integer | `0` 至 `254`         | 5                                                                                               | 被动检查(非健康节点)HTTP 或 HTTPS 类型检查时,确定节点非健康的次数。 |
+| upstream.checks.passive.unhealthy.http_failures | 被动检查(非健康节点)| integer | `0` 至 `254`         | 5                                                                                         | 被动检查(非健康节点)HTTP 或 HTTPS 类型检查时,确定节点非健康的次数。 |
 
 ## 配置示例