-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
"failed to release lock" error during active healthchecks #9221
Comments
Kong Kong/lua-resty-healthcheck@1.5.1...1.5.2 Kong/lua-resty-healthcheck#113
Is there any plan to release(ex: |
I should add that my upstream has a single target registered with it. I'm suspecting that this has something to do with the default value of |
Adding more info here, I think this is related to how I'm managing the routing configurations on my setup. I'm running Kong in declarative mode and I have a sidecar daemon that's doing a |
My above assumption was correct. Each new |
I also have a ingress controller to change my usptream node, then health check object will be created again.And I got the "failed to release lock" log. |
I found the answer by debuging fix(lock) handle all resty.lock failure modes (Kong/lua-resty-healthcheck#112)
|
Is there an existing issue for this?
Kong version (
$ kong version
)2.8.1
Current Behavior
I'm running Kong in declarative mode to expose a bunch of services. I've configured the following active healthcheck on all of them:
Every once in a while, an upstream target randomly becomes unhealthy and even after the actual upstream service becomes available, the status of the upstream target never returns to healthy.
In one of these instances, I've noticed the following logs in Kong proxy:
What kind of lock is this?
I've even checked the resource usage of Kong. It's allowed to use 2 CPUs and 4Gs of memory. The CPU usage remains at around 1% and the memory never crosses 1G.
Expected Behavior
The upstream target should be set to healthy by the healthchecker once the upstream service is available.
Steps To Reproduce
Anything else?
No response
The text was updated successfully, but these errors were encountered: