membphis commented on issue #1233: bug: route by radixtree_host_uri stress 
testing cannot reach expect
URL: 
https://github.com/apache/incubator-apisix/issues/1233#issuecomment-599961051
 
 
   @wwd5613 
   
   For your scene, just use `radixtree_host_uri`.
   
   If you still have problems, you need to provide more environmental 
information.
   
   For example:
   
   > wrk -> apisix/nginx proxy -> nginx server
   
   wrk:  `wrk http://127.0.0.1:9080/hello -H "host: www.websockettest500.com"`
   
   **apisix**: enable radixtree_host_uri and 1 worker
     
   ```json
   {
       "uri": "*",
       "hosts": ["www.websockettest1.com"],
        "vars":[["server_port","==","80"]],
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "172.28.73.60:80": 1
           }
       }
   }
   ```
   
   **nginx proxy**: proxy pass, 1 worker
   
       location / {
               proxy_pass  http://127.0.0.1:1980/;
           }
   
   **nginx server**: content_by_lua 'ngx.say("cur time: ", ngx.time())', 1 
worker
   
   Then we can compare the TPS  between APISIX and Nginx proxy.
   
   Here is my result:
   APISIX: Requests/sec:  12936.45
   Nginx proxy: Requests/sec:  10467.44
   

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