Firstsawyou commented 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 plug-in 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:
us...@infra.apache.org


Reply via email to