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 2021/04/19 09:28:54 UTC

[GitHub] [apisix] Firstsawyou edited a comment on issue #4080: bug: limit-count 中 count 值未生效

Firstsawyou edited a comment on issue #4080:
URL: https://github.com/apache/apisix/issues/4080#issuecomment-822288003


   > 我的需求是每秒限制 2000 请求,难道这样配置不符合吗?
   > 设置成
   > time_window: 2
   > count: 4000
   > 这样吗?
   
   This is reasonable. But time_window is set to 1 second, which is too short. It is not guaranteed that all requests will be completed within 1 second. When the request exceeds 1 second, the `count` value will be reset. The effect of the limit-count plugin will be sent as it is now.
   You can first set the value of `time_window` to a larger value, which makes it easier to test out the function of the limit-count plugin.


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