You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/17 08:05:30 UTC

[GitHub] [apisix] lijiapengsa opened a new issue #2067: request help: 我在测试发现有偶尔的404出现

lijiapengsa opened a new issue #2067:
URL: https://github.com/apache/apisix/issues/2067


   ### Issue description
   我目前正在对apisix进行压测、发现有非200请求出现,在手动发送请求的时候也会发生有404的问题
   压测使用的是wrk、发现非200 返回后、手动请求也有此现象
   
   * 这是手动请求发现的404请求 
   ![image](https://user-images.githubusercontent.com/7970836/90371854-21866100-e0a2-11ea-85a2-845b29596f05.png)
   ![image](https://user-images.githubusercontent.com/7970836/90372536-213a9580-e0a3-11ea-9cd3-b87cb43357d8.png)
   
   
   
   * upstream conf
   ![image](https://user-images.githubusercontent.com/7970836/90372327-d456bf00-e0a2-11ea-8893-cd5f78f3910b.png)
   
   * route conf
   ![image](https://user-images.githubusercontent.com/7970836/90372404-f4867e00-e0a2-11ea-991f-32aa5ce5f409.png)
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.15
   * OS: CentOS Linux release 7.8.2003 
   
   
   
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #2067: request help: 我在测试发现有偶尔的404出现

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2067:
URL: https://github.com/apache/apisix/issues/2067#issuecomment-674944424


   How can this problem be reproduced? please provide more detailed steps.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] membphis edited a comment on issue #2067: request help: 我在测试发现有偶尔的404出现

Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #2067:
URL: https://github.com/apache/apisix/issues/2067#issuecomment-674945280


   it works fine for this case.
   
   ```shell
   $ curl http://127.0.0.1:9080/apisix/admin/upstreams/100 -H'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "type":"roundrobin",
       "nodes":{
           "127.0.0.1:1980":1,
           "127.0.0.1:1981":1
       }
   }'
   
   $ curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/",
       "host": "a.com",
       "plugins": {
           "proxy-rewrite": {
               "scheme": "http"
           }
       },
       "upstream_id": 100
   }'
   
   $ wrk http://127.0.0.1:9080/ -H 'host: a.com'
   Running 10s test @ http://127.0.0.1:9080/
     2 threads and 10 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency   626.95us  447.79us  19.57ms   88.81%
       Req/Sec     7.88k     1.65k   11.11k    64.68%
     157624 requests in 10.10s, 31.26MB read
   Requests/sec:  15606.72
   Transfer/sec:      3.10MB
   ```
   
   I do not get `404` response.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] lijiapengsa commented on issue #2067: request help: 我在测试发现有偶尔的404出现

Posted by GitBox <gi...@apache.org>.
lijiapengsa commented on issue #2067:
URL: https://github.com/apache/apisix/issues/2067#issuecomment-675202081


   I just reconfigured it according to the method you gave, and now apisix can work normally.
   Surprisingly, the performance of apisix is much higher than that of envoy. Below is my stress test data.
   
   ```bash
   [root@k8s ~]# wrk -t32 -c100 -d30s  http://a.com
   Running 30s test @ http://a.com
     32 threads and 100 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency     0.94ms    2.54ms 207.31ms   96.79%
       Req/Sec     4.52k   315.81     8.90k    74.60%
     4321169 requests in 30.10s, 782.78MB read
   Requests/sec: 143563.56
   Transfer/sec:     26.01MB
   [root@k8s ~]#
   [root@k8s ~]# wrk -t32 -c100 -d30s  http://a.com
   Running 30s test @ http://a.com
     32 threads and 100 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency     1.44ms    8.69ms 215.93ms   99.48%
       Req/Sec     4.52k   393.63     7.40k    81.72%
     4318110 requests in 30.10s, 782.23MB read
   Requests/sec: 143461.94
   Transfer/sec:     25.99MB
   [root@k8s ~]#
   [root@k8s ~]# wrk -t32 -c500 -d30s  http://a.com
   Running 30s test @ http://a.com
     32 threads and 500 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency     1.67ms    2.21ms 209.41ms   87.16%
       Req/Sec    14.17k     2.22k   23.46k    69.84%
     13577794 requests in 30.10s, 2.40GB read
   Requests/sec: 451089.88
   Transfer/sec:     81.72MB
   [root@k8s ~]#
   [root@k8s ~] wrk -t32 -c500 -d30s  http://a.com
   Running 30s test @ http://a.com
     32 threads and 500 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency     1.64ms    2.17ms 208.72ms   87.14%
       Req/Sec    14.24k     2.15k   21.73k    69.16%
     13644324 requests in 30.10s, 2.41GB read
   Requests/sec: 453301.34
   Transfer/sec:     82.12MB
   ```
   
   On the same server, envoy can only reach up to 320,000


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] jie123108 commented on issue #2067: request help: got 404 response when I do benchmark

Posted by GitBox <gi...@apache.org>.
jie123108 commented on issue #2067:
URL: https://github.com/apache/apisix/issues/2067#issuecomment-675232331


   I had a similar problem with an earlier version of apisix. One time it worked, the next time it didn't. It turned out to be caused by multiple instances of apisix starting on the same port. 
   You can check if it is the same problem. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #2067: request help: 我在测试发现有偶尔的404出现

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2067:
URL: https://github.com/apache/apisix/issues/2067#issuecomment-674945280


   it works fine for this case.
   
   ```
   $ curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/hello",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:1980": 1
           }
       }
   }
   
   $ wrk http://127.0.0.1:9080/hello
   Running 10s test @ http://127.0.0.1:9080/hello
     2 threads and 10 connections
     Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency   499.23us  380.20us  18.70ms   91.14%
       Req/Sec     9.88k     1.68k   12.86k    66.67%
     197616 requests in 10.10s, 39.38MB read
   Requests/sec:  19566.52
   Transfer/sec:      3.90MB
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] lijiapengsa closed issue #2067: request help: 我在测试发现有偶尔的404出现

Posted by GitBox <gi...@apache.org>.
lijiapengsa closed issue #2067:
URL: https://github.com/apache/apisix/issues/2067


   


----------------------------------------------------------------
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:
users@infra.apache.org