NicolasBachs opened a new issue #2644:
URL: https://github.com/apache/apisix/issues/2644


   ### Issue description
   I was performing stress test in order to check apisix performance but I got 
an unexpected status code response (Non-2xx or 3xx responses).
   
   
   **Direct to upstream (Golang API, limited to use only one core):**
   ```
   wrk -t4 -c32 -d60s http://localhost:3000/
   Running 1m test @ http://localhost:3000/
     4 threads and 32 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency   435.11us  268.43us  13.53ms   67.03%
       Req/Sec    18.64k   817.84    34.82k    78.23%
     4454134 requests in 1.00m, 318.58MB read
   Requests/sec:  74112.13
   Transfer/sec:      5.30MB
   ```
   
   **Using apisix:**
   ```
   wrk -t4 -c32 -d60s http://localhost:9080/status
   Running 1m test @ http://localhost:9080/status
     4 threads and 32 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency     3.31ms    9.76ms 196.69ms   93.31%
       Req/Sec    11.84k     4.70k   18.17k    86.62%
     2828917 requests in 1.00m, 322.05MB read
     Non-2xx or 3xx responses: 5817
   Requests/sec:  47139.93
   Transfer/sec:      5.37MB
   ```
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.0 (cloned from last commit in 
repo)
   * OS: Manjaro Linux
   
   **Upstream configuration:**
   ```
   {
       "hash_on": "vars",
       "id": "1",
       "nodes": {
           "172.17.0.1:3000": 1
       },
       "type": "roundrobin",
       "pass_host": "pass"
   }
   ```
   
   **Consumer configuration:**
   ```
   {
       "username": "1",
       "desc": "",
       "plugins": {}
   }
   ```
   
   **Route configuration:**
   ```
   {
       "id": "test",
       "plugins": {
           "proxy-rewrite": {
               "uri": "/"
           }
       },
       "upstream_id": "1",
       "uri": "/status",
       "desc": "",
       "priority": 0,
       "methods": [
           "GET"
       ],
       "name": "status"
   }
   ```
   
   How I can solve this trouble?
   


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