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 2022/04/12 07:34:09 UTC
[GitHub] [apisix] johndudo commented on issue #6829: help request: plugin limit-req works not correctly when burst&rate are larger than 3000.
johndudo commented on issue #6829:
URL: https://github.com/apache/apisix/issues/6829#issuecomment-1096259789
(1) work normal case
plugin settting:
"limit-req": {
"burst": 5000,
"disable": false,
"key": "server_addr",
"key_type": "var",
"nodelay": false,
"rate": 1000,
"rejected_code": 503
}
**running result:**
[tomcat@TYCOSUTOMAPI02 wrk-4.1.0]$ ./wrk -t 4 -c 100 -d 10s http://XXXX:9080/test/getjson --latency
Running 10s test @ http://XXXX:9080/test/getjson
4 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 97.34ms 8.15ms 113.64ms 97.39%
Req/Sec 256.52 18.60 480.00 93.50%
Latency Distribution
50% 98.67ms
75% 99.84ms
90% 100.82ms
99% 103.51ms
10227 requests in 10.01s, 14.85MB read
Requests/sec: 1021.84
Transfer/sec: 1.48MB
期望QPS 1000, 实际 1021.84
(2) work wrong case
plugin settting:
"limit-req": {
"burst": 5000,
"disable": false,
"key": "server_addr",
"key_type": "var",
"nodelay": false,
"rate": 3000,
"rejected_code": 503
}
**running result:**
[tomcat@TYCOSUTOMAPI02 wrk-4.1.0]$ ./wrk -t 4 -c 100 -d 10s http://XXXX:9080/test/getjson --latency
Running 10s test @ http://XXXX:9080/test/getjson
4 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 17.60ms 12.86ms 133.63ms 83.90%
Req/Sec 1.50k 703.36 3.01k 67.92%
Latency Distribution
50% 13.10ms
75% 27.00ms
90% 31.39ms
99% 70.52ms
59767 requests in 10.01s, 86.81MB read
Requests/sec: 5970.67
Transfer/sec: 8.67MB
期望QPS 3000, 实际 5970.67
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org