izayoi-akira opened a new issue #4638: URL: https://github.com/apache/apisix/issues/4638
### Issue description There are a number of routes configured with proxy-rewrite URI Override Static New Path: proxy url - original url apisix.demo.com/oauth.verify/1.0.0 - serverA/api/oauth/verify apisix.demo.com/serv.XxxCCMXProd/1.0 - serverB/api/common/cust/XxxCCMX Other serverB routes are similar to above: apisix.demo.com/serv.Foo/1.0 - serverB/api/common/cust/Foo When 14 concurrent requests, proxy error terribly, here is access.log (desensitization for security): 10.xx.x.0 - - [21/Jul/2021:00:39:12 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 200 67 0.045 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 200 0.043 "http://apisix.demo.com/api/oauth/verify" 10.yy.y.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /serv.XxxCCMXProd/1.0 HTTP/1.1" 200 65 0.065 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.065 "http://apisix.demo.com/api/common/cust/XxxCCMX" 10.yy.y.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /serv.XxxInvestProd/1.0 HTTP/1.1" 200 65 0.103 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.103 "http://apisix.demo.com/api/common/cust/XxxCCMXProd" 10.xx.x.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /serv.XxxCCMX/1.0 HTTP/1.1" 200 514 0.257 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.252 "http://apisix.demo.com/api/common/cust/XxxCCMX" 10.zz.a.0 - - [21/Jul/2021:00:39:12 +0000] apisix.demo.com "POST /serv.queryXxxOpenAcntStage/1.0 HTTP/1.1" 200 74 0.434 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.428 "http://apisix.demo.com/api/common/cust/queryXxxOpenAcntStage" 10.zz.a.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 404 1564 0.021 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 404 0.020 "http://apisix.demo.com/api/common/cust/selectcustmsg" 10.hh.ss.1 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "GET /serv.selectcustmsg/1.0?clientId=20212053 HTTP/1.1" 200 65 0.063 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.058 "http://apisix.demo.com/api/common/cust/selectcustmsg?clientId=20212053" 10.hh.ss.1 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /serv.XxxCCMX/1.0 HTTP/1.1" 200 65 0.104 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.104 "http://apisix.demo.com/api/oauth/verify" 10.42.3.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 200 67 0.045 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 200 0.043 "http://apisix.demo.com/api/oauth/verify" 10.xx.x.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 401 65 0.034 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 401 0.033 "http://apisix.demo.com/api/oauth/verify" 10.hh.ss.1 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 200 67 0.043 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 200 0.042 "http://apisix.demo.com/api/oauth/verify" 10.xx.x.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 401 65 0.057 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 401 0.058 "http://apisix.demo.com/api/oauth/verify" 10.zz.a.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /oauth.verify/1.0.0 HTTP/1.1" 404 1564 0.057 "-" "Apache-HttpClient/4.5.12 (Java/1.8.0_172)" 172.58.7.255:80 404 0.056 "http://apisix.demo.com/api/common/cust/staffServiceByNo" 10.42.3.0 - - [21/Jul/2021:00:39:13 +0000] apisix.demo.com "POST /serv.staffServiceByNo/1.0 HTTP/1.1" 200 877 0.238 "-" "okhttp/3.14.9" 172.58.21.141:8081 200 0.234 "http://apisix.demo.com/api/common/cust/staffServiceByNo" In the second request,/serv.XxxCCMXProd/1.0 be agent to /api/common/cust/XxxCCMX; In the eighth, /serv.XxxCCMX/1.0 HTTP/1.1 which is serverB route even be agent to /api/oauth/verify which is serverA; ### Environment Docker image apache/apisix:2.5-centos deployed on k8s as a workload Bug report without environment information will be ignored or closed. * apisix version (cmd: `apisix version`): 2.5 * etcd version: 3.4.9 * apisix-dashboard version, if have:2.6 Bug report without steps to reproduce will be ignored or closed. 1.proxy-rewrite set URI Override Static New Path 2.concurrence request -- 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]
