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 15:30:49 UTC
[GitHub] [apisix] membphis edited a comment on issue #2067: request help: 我在测试发现有偶尔的404出现
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