wwd5613 opened a new issue #1233: bug: route by radixtree_host_uri Stress 
Testing cannot reach expect
URL: https://github.com/apache/incubator-apisix/issues/1233
 
 
   ### I set 10 to 5000 route with host,like
   {
       "uri": "*",
       "hosts": ["www.websockettest1.com"],
        "vars":[["server_port","==","80"]],
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "172.28.73.60:80": 1
           }
       }
   }
   and set config.yaml 
     router:
        http: 'radixtree_host_uri'
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.0
   * OS: Centos7.4 8c16g
   
   ### Minimal test code / Steps to reproduce the issue
   1.wrk -t16 -c200 -d300s -T300s --latency  --script=get500.lua 
http://www.websockettest1/test?a=123
   2.get500.lua 
   wrk.method = "GET"  
   wrk.host = "www.testwaf1.com"
   wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"
   wrk.headers["Accept-Encoding"] = "gzip, deflate"
   wrk.headers["Accept-Language"] = "zh-CN,zh;q=0.9"
   wrk.headers["Cache-Control"] = "no-cache"
   wrk.headers["Connection"] = "keep-alive"
   --wrk.headers["Connection"] = "close"
   wrk.headers["Cookie"] = 
"JSESSIRE45ONID=988051FA6F8638AD356HY0FC40DEB861604F677676GHG878123EDGTE1245; 
name=%22wuwng%22"
   wrk.headers["Host"] = "www.websockettest1"
   wrk.headers["Referer"] = "http://www.websockettest1/";
   wrk.headers["User-Agent"] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
   wrk.headers["Pragma"] = "no-cache"
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   
   
![QQ图片20200312101743](https://user-images.githubusercontent.com/2143396/76480831-d0b37200-644a-11ea-9cdd-ebbcfc4f6378.jpg)
   Stress Testing Contrast:
     tps of source site is 16W,
     tps of source site pass by apisix is 7W
   and cpu is near 100% with 20% sys cost.
   
![QQ图片20200312102413](https://user-images.githubusercontent.com/2143396/76481170-c5ad1180-644b-11ea-8227-316e7e5d5e0f.jpg)
   
   and Flame Graphs is as follow
   
![微信截图_20200312102431](https://user-images.githubusercontent.com/2143396/76481209-e07f8600-644b-11ea-9042-4d81c7c50413.png)
   
   
   ### What's the expected result?
     tps can be higher
   

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


With regards,
Apache Git Services

Reply via email to