xianshun163 opened a new issue #5966:
URL: https://github.com/apache/apisix/issues/5966


   ### Issue description
   
   I have see  the  doc  about the benchmark,the result is good: 
https://apisix.apache.org/docs/apisix/benchmark/
   I try it myself, but  it is not so  good,any one  who can tell me  how to  
optimize it.
   Here is my  env:
   I  have three host, and  they are all  4c8g
   host13: I deploy  apisix2.11.0  use the source code
   host14: I use it  to run wrk, the  HTTP benchmarking tool
   host15: I deploy a nginx, as a upstream, and k8s, I also deploy a apisix  as 
a pod  in  this host
   
   I have not use any plugins, and only config the nginx  as a upstream of the 
apisix. And the nginx return a string directory
   
   the test result like this:
   wrk  directory call the nginx, qps is 30217
   wrk call the host13 apisix,  qps is 11003.17
   wrk call the host15 apisix, qps is  8002.80
   here is the wrk  detail:
   [root@k8s_test1 data]# ./wrk -t200 -c5000 -d30s  
http://172.16.11.15:1980/hello
   Running 30s test @ http://172.16.11.15:1980/hello
     200 threads and 5000 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency   215.86ms  235.20ms   2.00s    88.07%
       Req/Sec   153.61     98.81     1.50k    71.78%
     912979 requests in 30.21s, 302.13MB read
     Socket errors: connect 0, read 4, write 163, timeout 1100
   Requests/sec:  30217.23
   Transfer/sec:     10.00MB
   
   [root@k8s_test1 data]# ./wrk -t200 -c5000 -d30s  
http://172.16.11.13:9080/hello
   Running 30s test @ http://172.16.11.13:9080/hello
     200 threads and 5000 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency   449.90ms  298.54ms   2.00s    81.53%
       Req/Sec    55.02     32.43   420.00     67.66%
     332622 requests in 30.23s, 110.40MB read
     Socket errors: connect 0, read 18, write 263, timeout 3732
     Non-2xx or 3xx responses: 548
   Requests/sec:  11003.17
   Transfer/sec:      3.65MB
   
   [root@k8s_test1 data]# ./wrk -t200 -c5000 -d30s  
http://172.16.11.15:30980/hello
   Running 30s test @ http://172.16.11.15:30980/hello
     200 threads and 5000 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency   109.96ms   89.03ms   2.00s    93.34%
       Req/Sec   100.90     92.24   717.00     76.64%
     242268 requests in 30.27s, 80.39MB read
     Socket errors: connect 0, read 2712, write 14878, timeout 2282
   Requests/sec:   8002.80
   Transfer/sec:      2.66MB
   
   
   
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):2.11.0
   - OS (cmd: `uname -a`):centos 7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to