whioue opened a new issue #6540: URL: https://github.com/apache/apisix/issues/6540
### Issue description 1.当我配置了upstream的主动以及被动健康检查,关联route并成功转发请求后,使用curl频繁访问/v1/healthcheck,发现有时返回数据,有时不返回数据。 2.我还发现使用不同的终端(浏览器和postman)频繁访问/v1/healthcheck,发现postman能获取数据,浏览器却获取不到,如下: 浏览器:  postman:  curl:  ### Environment - apisix version (cmd: `apisix version`):v2.8 - OS (cmd: `uname -a`):centos7 - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): - apisix-dashboard version, if have: - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): - luarocks version, if the issue is about installation (cmd: `luarocks --version`): ### Steps to reproduce 配置大致如下,能获取到后端响应: { "uri": "/test", "upstream": { "name": "test", "id": "00000000000000182386", "timeout": { "read": 6000, "connect": 6000, "send": 6000 }, "scheme": "http", "hash_on": "vars", "type": "roundrobin", "checks": { "active": { "healthy": { "successes": 2, "interval": 1, "http_statuses": [200,302] }, "timeout": 6, "type": "http", "unhealthy": { "http_failures": 5, "tcp_failures": 2, "timeouts": 3, "interval": 1, "http_statuses": [429,404,500,501,502,503,504,505] }, "req_headers": [ "" ], "concurrency": 10, "http_path": "/test" }, "passive": { "healthy": { "http_statuses": [200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,306,307,308], "successes": 5 }, "type": "http", "unhealthy": { "timeouts": 7, "http_statuses": [429,500,503], "http_failures": 5, "tcp_failures": 2 } } }, "pass_host": "pass", "nodes": { "ip1:port1": 1, "ip2:port2": 1 } } } ### Actual result 如上图描述 ### Error log 无错误日志 ### Expected result 能通过接口稳定获取健康检查结果 -- 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]
