zwjzxh520 opened a new issue #4080:
URL: https://github.com/apache/apisix/issues/4080
### Issue description
limit-count 中的 count 值未生效,压测时,常常能跑到设置值的3倍左右,比如,count 设置为 2000,发现能跑到
6000,local 与 redis 均有测试
插件中 redis 操作代码已经根据 #3988 调整
apisix 是跑在 k8s 中,一个 pod
插件配置
```
{
"count": 2000,
"disable": false,
"key": "remote_addr",
"policy": "local",
"time_window": 1
}
```
### Environment
* apisix version (cmd: `apisix version`): 2.4
* OS (cmd: `uname -a`): image: *apache/apisix:2.4-alpine* uname -a : *Linux
apisix-7bffcdb47d-hxz4l 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38
UTC 2020 x86_64 Linux*
* OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): *nginx
version: openresty/1.19.3.1*
* etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
*3.4.0*
* apisix-dashboard version, if have: commit: *afc3df96c0f7d86bfd20c579*
### Minimal test code / Steps to reproduce the issue
1.
2.
3.
### What's the actual result? (including assertion message & call stack if
applicable)

截图中的 current rps 达到了 6000,而 current failures 才 200 多,预期是 4000
### What's the expected result?
QPS 超过 2000 后,正常请求在 2000,超过的均为 503
--
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]