SylviaBABY commented on code in PR #7479:
URL: https://github.com/apache/apisix/pull/7479#discussion_r923351286
##########
docs/zh/latest/plugins/api-breaker.md:
##########
@@ -48,14 +48,14 @@ title: api-breaker
| break_response_headers | array[object] | 可选 | 无 |
[{"key":"header_name","value":"can contain Nginx $var"}] |
不健康返回报文头,这里可以设置多个。该字段仅在 `break_response_body` 被配置时生效。这个值能够以 `$var` 的格式包含 APISIX
变量,比如 `{"key":"X-Client-Addr","value":"$remote_addr:$remote_port"}`。 |
| max_breaker_sec | integer | 可选 | 300 | >=3
| 最大熔断持续时间 |
| unhealthy.http_statuses | array[integer] | 可选 | {500} | [500, ...,
599] | 不健康时候的状态码 |
-| unhealthy.failures | integer | 可选 | 3 | >=1
| 触发不健康状态的连续错误请求次数 |
+| unhealthy.failures | integer | 可选 | 3 | >=1
| 在一定时间内触发不健康状态的异常请求次数|
Review Comment:
```suggestion
| unhealthy.failures | integer | 可选 | 3 | >=1
| 在一定时间内触发不健康状态的异常请求次数 |
```
##########
docs/zh/latest/plugins/api-breaker.md:
##########
@@ -48,14 +48,14 @@ title: api-breaker
| break_response_headers | array[object] | 可选 | 无 |
[{"key":"header_name","value":"can contain Nginx $var"}] |
不健康返回报文头,这里可以设置多个。该字段仅在 `break_response_body` 被配置时生效。这个值能够以 `$var` 的格式包含 APISIX
变量,比如 `{"key":"X-Client-Addr","value":"$remote_addr:$remote_port"}`。 |
| max_breaker_sec | integer | 可选 | 300 | >=3
| 最大熔断持续时间 |
| unhealthy.http_statuses | array[integer] | 可选 | {500} | [500, ...,
599] | 不健康时候的状态码 |
-| unhealthy.failures | integer | 可选 | 3 | >=1
| 触发不健康状态的连续错误请求次数 |
+| unhealthy.failures | integer | 可选 | 3 | >=1
| 在一定时间内触发不健康状态的异常请求次数|
Review Comment:
<img width="931" alt="image"
src="https://user-images.githubusercontent.com/39793568/179517813-edf44729-0fd2-4680-93b3-05bbe5755a9d.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]