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


   ```
   {
     "count": 60000,
     "disable": false,
     "key": "remote_addr",
     "policy": "redis",
     "redis_database": 20,
     "redis_host": "r-******.com",
     "redis_password": "",
     "redis_port": 6339,
     "redis_timeout": 500,
     "rejected_code": 503,
     "time_window": 60
   }
   ```
   
   
![image](https://user-images.githubusercontent.com/2184202/115218313-02f8ce00-a139-11eb-8630-98d6576585ca.png)
   
   
   我们将 time_window 设置为了 60 s, 从压测结果中可以看出,控频是有波动的
   
   上游接收到的请求数:
   
   ```
   时间: 2021-04-19 17:08 QPS:199823
   时间: 2021-04-19 17:07 QPS:166324
   时间: 2021-04-19 17:06 QPS:150550
   时间: 2021-04-19 17:05 QPS:114395 -- 开始压测
   ```
   从 apisix 穿透到上游每分钟的请求数,远远大于我们设置的阈值 60000


-- 
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:
[email protected]


Reply via email to