-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: The control api /healthcheck of apisix3.2 version cannot query the node information. #10808
Comments
I wasn't able to reproduce the error, |
I did not see the error message of the control api in the apisix log. |
I was able to reproduce the error. Line 212 in 781e8f6
Also, did you try to configure this with the latest version? |
this looks similar to #7964 |
@guankai Is there an update on this? |
The current control API should not be able to solve my problem. I'll deal with it in other ways.thank you |
Current Behavior
The corresponding upstream is configured and health_check is set in it. The code is as follows:
"checks": { "active": { "concurrency": 10, "healthy": { "http_statuses": [ 200, 302 ], "interval": 1, "successes": 2 }, "http_path": "/v1/apaas/adapter/login/config", "timeout": 1, "type": "http", "unhealthy": { "http_failures": 5, "http_statuses": [ 429, 404, 500, 501, 502, 503, 504, 505 ], "interval": 1, "tcp_failures": 2, "timeouts": 3 } } }
However, I cannot obtain this upstream information through /healthcheck of the control API, and the following error will be prompted:
{"error_msg":"no checker for upstreams[495651237807522893]"}
The apisix version I am currently using is 3.2. Is it because of a configuration problem? enable_control in config.yaml has been set to true.
Expected Behavior
It is expected that the upstream node information that has been configured with health check can be queried through the /healthcheck interface of the control API.
Error Logs
{"error_msg":"no checker for upstreams[495651237807522893]"}
Steps to Reproduce
"checks": { "active": { "concurrency": 10, "healthy": { "http_statuses": [ 200, 302 ], "interval": 1, "successes": 2 }, "http_path": "/v1/apaas/adapter/login/config", "timeout": 1, "type": "http", "unhealthy": { "http_failures": 5, "http_statuses": [ 429, 404, 500, 501, 502, 503, 504, 505 ], "interval": 1, "tcp_failures": 2, "timeouts": 3 } } }
2.Set enable_control= true
Environment
The text was updated successfully, but these errors were encountered: