kong upstream healthcheck stop after a target(with hostname) return 404 #8324
Labels
core/proxy
pending author feedback
Waiting for the issue author to get back to a maintainer with findings, more details, etc...
stale
Is there an existing issue for this?
Kong version (
$ kong version
)kong 2.7.0
Current Behavior
when i upgrade kong to 2.7.0 from 2.2.0,i create a new service, route, upstream, and then the healthcheck's config as below:
and the target is 'xxx.hostname.com:47893' ,Hostname is interpreted as 3 IP (as A records) (found through the dig command: dig xxx.hostname.com)
then i set kong log level to debug
at first, i see the healthcheck's log is normal(the target with healthcheck path return 404) and the target's health status is unhealthy as i hope, after 3 or 5 minutes, the healthcheck log stop and the target's health status switch to health!!!
then no matter what I set as target(ip or host, health or unhealth),the target show health,and the healthcheck log do not work
However, when I set IP as target, active healthcheck works properly
by the way:
Kong Marking unhealthy target healthy again on deletion of target or addition of new target
Healthcheck stopped after update Upstream
[healthchecks] failed setting peer status: no peer found by name and address
Especially issue 7163
Expected Behavior
As mentioned above, I hope the active healthcheck can work normally when the target is hostname
Steps To Reproduce
Anything else?
if want more infomation,please contact me
The text was updated successfully, but these errors were encountered: