Firstsawyou commented on issue #3498: URL: https://github.com/apache/apisix/issues/3498#issuecomment-772299489
Based on the information you provided, your problem cannot be reproduced. And there is no health check in your configuration. Here is my test: environment: docker , image is apache/apisix:2.2-alpine 1、add route: ``` curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "labels": { "domain": "test.cn", "API_VERSION": "1" }, "uris": [ "/*" ], "methods": [ "GET", "HEAD", "POST" ], "service_id": "1", "upstream_id": "1", "status": 1, "desc": "/", "vars": [ [ "scheme", "==", "http" ] ], "name": "www_xxxxxxx_cn_http" }' ``` 2、add service: ``` curl http://127.0.0.1:9080/apisix/admin/services/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "name": "server1_server2_server3", "plugins": { "echo": { "disable": true, "before_body": "before the body modification " } }, "upstream_id": "1" }' ``` 3、add upstream ``` curl http://127.0.0.1:9080/apisix/admin/upstreams/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -i -X PUT -d ' { "name": "web1_web2_web3_http", "pass_host": "pass", "timeout": { "send": 6000, "read": 6000, "connect": 6000 }, "nodes": [ { "port": 80, "weight": 1, "host": "httpbin.org" }, { "port": 80, "weight": 1, "host": "172.16.0.172" } ], "desc": "关闭健康检测", "type": "roundrobin" }' ``` 4、test request: ``` $ curl http://127.0.0.1:9080/get -i HTTP/1.1 200 OK Content-Type: application/json Content-Length: 299 Connection: keep-alive Date: Wed, 03 Feb 2021 07:26:10 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Server: APISIX/2.2 { "args": {}, "headers": { "Accept": "*/*", "Host": "127.0.0.1", "User-Agent": "curl/7.67.0", "X-Amzn-Trace-Id": "Root=1-601a5012-7a9877a178fe768b63206032", "X-Forwarded-Host": "127.0.0.1" }, "origin": "127.0.0.1, 121.41.116.83", "url": "http://127.0.0.1/get" } ``` ``` $ curl http://127.0.0.1:9080/index.hmtl -i HTTP/1.1 404 NOT FOUND Content-Type: text/html; charset=utf-8 Content-Length: 233 Connection: keep-alive Date: Wed, 03 Feb 2021 07:30:20 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Server: APISIX/2.2 ........ ``` ---------------------------------------------------------------- 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]
