You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/02/01 10:09:20 UTC

[apisix] branch master updated: docs(api-breaker): the plugin docs is synchronized with the schema (#3470)

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

spacewander 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 44074bb  docs(api-breaker): the plugin docs is synchronized with the schema (#3470)
44074bb is described below

commit 44074bb844f98dc4719f44fa1f82459e72583b45
Author: Yuelin Zheng <22...@qq.com>
AuthorDate: Mon Feb 1 18:09:06 2021 +0800

    docs(api-breaker): the plugin docs is synchronized with the schema (#3470)
---
 doc/plugins/api-breaker.md       | 14 +++++++-------
 doc/zh-cn/plugins/api-breaker.md | 10 +++++-----
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/doc/plugins/api-breaker.md b/doc/plugins/api-breaker.md
index 0d0182f..5974d58 100644
--- a/doc/plugins/api-breaker.md
+++ b/doc/plugins/api-breaker.md
@@ -47,14 +47,14 @@ In an unhealthy state, when a request is forwarded to an upstream service and th
 
 ## Attributes
 
-| Name          | Type          | Requirement | Default | Valid      | Description                                                                 |
-| ------------- | ------------- | ----------- | ------- | ---------- | --------------------------------------------------------------------------- |
-| break_response_code           | integer | required |          | [200, ..., 600] | return error code when unhealthy |
-| max_breaker_sec | integer | optional | 300 | >=60 | Maximum breaker time(seconds) |
+| Name                    | Type          | Requirement | Default | Valid            | Description                                                                 |
+| ----------------------- | ------------- | ----------- | -------- | --------------- | --------------------------------------------------------------------------- |
+| break_response_code     | integer        | required |            | [200, ..., 599] | Return error code when unhealthy |
+| max_breaker_sec         | integer        | optional | 300        | >=60            | Maximum breaker time(seconds) |
 | unhealthy.http_statuses | array[integer] | optional | {500}      | [500, ..., 599] | Status codes when unhealthy |
-| unhealthy.failures      | integer        | optional | 1          | >=1             | Number of consecutive error requests that triggered an unhealthy state |
-| healthy.http_statuses   | array[integer] | optional | {200, 206} | [200, ..., 499] | Status codes when healthy |
-| healthy.successes | integer        | optional | 1          | >=1             | Number of consecutive normal requests that trigger health status |
+| unhealthy.failures      | integer        | optional | 3          | >=1             | Number of consecutive error requests that triggered an unhealthy state |
+| healthy.http_statuses   | array[integer] | optional | {200}      | [200, ..., 499] | Status codes when healthy |
+| healthy.successes       | integer        | optional | 3          | >=1             | Number of consecutive normal requests that trigger health status |
 
 ## How To Enable
 
diff --git a/doc/zh-cn/plugins/api-breaker.md b/doc/zh-cn/plugins/api-breaker.md
index b14bb73..e8b2284 100644
--- a/doc/zh-cn/plugins/api-breaker.md
+++ b/doc/zh-cn/plugins/api-breaker.md
@@ -49,12 +49,12 @@
 
 | 名称                    | 类型           | 必选项 | 默认值     | 有效值          | 描述                             |
 | ----------------------- | -------------- | ------ | ---------- | --------------- | -------------------------------- |
-| break_response_code | integer        | 必须   | 无         | [200, ..., 600] | 不健康返回错误码                 |
-| max_breaker_sec     | integer        | 可选   | 300        | >=60            | 最大熔断持续时间                 |
+| break_response_code     | integer        | 必须   | 无         | [200, ..., 599] | 不健康返回错误码                 |
+| max_breaker_sec         | integer        | 可选   | 300        | >=60            | 最大熔断持续时间                 |
 | unhealthy.http_statuses | array[integer] | 可选   | {500}      | [500, ..., 599] | 不健康时候的状态码               |
-| unhealthy.failures      | integer        | 可选   | 1          | >=1             | 触发不健康状态的连续错误请求次数 |
-| healthy.http_statuses   | array[integer] | 可选   | {200, 206} | [200, ..., 499] | 健康时候的状态码                 |
-| healthy.successes       | integer        | 可选   | 1          | >=1             | 触发健康状态的连续正常请求次数   |
+| unhealthy.failures      | integer        | 可选   | 3          | >=1             | 触发不健康状态的连续错误请求次数 |
+| healthy.http_statuses   | array[integer] | 可选   | {200}      | [200, ..., 499] | 健康时候的状态码                 |
+| healthy.successes       | integer        | 可选   | 3          | >=1             | 触发健康状态的连续正常请求次数   |
 
 ## 启用方式