xujl930 opened a new issue #3276:
URL: https://github.com/apache/apisix/issues/3276


   ### Issue description
   I got some response of error code 503 from Apisix when benchmark with 
ab,however,i have set rate to 10k per second. I  run ab -n 100 -c 10, it 
returned out about a half  503 response. is there any wrong configuration 
caused the result?
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): docker image: 
apache/apisix:2.2-alpine
   * apsix-dashboard: docker image: apache/apisix-dashboard:2.3
   * OS: (cmd: `uname -a`): macOS Big Sur 11.1
   * OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`): 
openresty/1.19.3.1
   
   ### Minimal test code / Steps to reproduce the issue
   
   1. run apisix and apisix-dashboard,add a global limit req plugin with 
configuration
   ```
   {
     "burst": 0,
     "disable": false,
     "key": "remote_addr",
     "rate": 100000,
     "rejected_code": 503
   }
   ```
   2. add a upstream server, a route point to the upstream server
   3. use ab with command like 
   ```
   ab -n 100 -c 10 http://127.0.0.1:9080/<your-route-url>
   ```
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   
![image](https://user-images.githubusercontent.com/26455030/104537773-9233a880-5655-11eb-872b-5fb7c4f5fa30.png)
   
![image](https://user-images.githubusercontent.com/26455030/104537487-028dfa00-5655-11eb-9dd6-0b6f07df8d6f.png)
   
   ### What's the expected result?
   it should return all response with 200 code


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