You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/15 14:47:25 UTC

[GitHub] [apisix] juzhiyuan commented on a change in pull request #2415: feat:The limit-conn plugin supports 'consumer_name' field

juzhiyuan commented on a change in pull request #2415:
URL: https://github.com/apache/apisix/pull/2415#discussion_r505603464



##########
File path: doc/zh-cn/plugins/limit-conn.md
##########
@@ -30,7 +30,7 @@
 | conn               | integer | required |        | [0,...]                                                                  | 允许的最大并发请求数。超过 `conn` 的限制、但是低于 `conn` + `burst` 的请求,将被延迟处理。                                                                                                                                                                                                                                                                                            |
 | burst              | integer | required |        | [0,...]                                                                  | 允许被延迟处理的并发请求数。                                                                                                                                                                                                                                                                                                                                                          |
 | default_conn_delay | number  | required |        | [0,...]                                                                  | 默认的典型连接(或请求)的处理延迟时间。                                                                                                                                                                                                                                                                                                                                                |
-| key                | object  | required |        | ["remote_addr", "server_addr", "http_x_real_ip", "http_x_forwarded_for"] | 用户指定的限制并发级别的关键字,可以是客户端IP或服务端IP。<br>例如,可以使用主机名(或服务器区域)作为关键字,以便限制每个主机名的并发性。 否则,我们也可以使用客户端地址作为关键字,这样我们就可以避免单个客户端用太多的并行连接或请求淹没我们的服务。 <br>当前接受的 key 有:"remote_addr"(客户端IP地址), "server_addr"(服务端 IP 地址), 请求头中的"X-Forwarded-For" 或 "X-Real-IP"。 |
+| key                | object  | required |        | ["remote_addr", "server_addr", "http_x_real_ip", "http_x_forwarded_for", "consumer_name"] | 用户指定的限制并发级别的关键字,可以是客户端IP或服务端IP。<br>例如,可以使用主机名(或服务器区域)作为关键字,以便限制每个主机名的并发性。 否则,我们也可以使用客户端地址作为关键字,这样我们就可以避免单个客户端用太多的并行连接或请求淹没我们的服务。 <br>当前接受的 key 有:"remote_addr"(客户端IP地址), "server_addr"(服务端 IP 地址), 请求头中的"X-Forwarded-For" 或 "X-Real-IP", "consumer_name"(consumer 的 username)。 |

Review comment:
       Please use `(` in Chinese.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org