-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
healthcheckextension: Add an ability to delay collector shutdown #34454
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The current health check extension will give way to the health check v2 extension, which should be ready soon. @mwear, do you remember if this use-case is part of the scope for v2 already? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I would recommend you write an extension that waits a number of seconds on shutdown. That's an easy thing to maintain and will do better for this use case, no need to tack this on the health check extension imo. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
extension/healthcheck, extension/healthcheckv2
Is your feature request related to a problem? Please describe.
We have a problem with 503 errors in the K8s environment for the otel endpoint.
These errors occur during the distribution/change of the collector configuration.
We have a process to restart the collector inside the pod with the new configuration.
During the configuration rollout, the collector shuts down too quickly, so K8s doesn't update the pod's healthy state and continues sending requests to this pod, leading to 503 errors.
Describe the solution you'd like
I'd like to have a way to delay the collector/endpoint shutdown after the HC state changes to NotReady.
This way, pod readiness would catch the NotReady status and move the traffic to the other pods before the actual collector shutdown.
It could look like: yuri-rs@55e0c5a
Describe alternatives you've considered
An alternative could be a delay in the collector service itself, like (added sleep line):
However, doing it inside the healthcheck extension seems better to me.
Additional context
What do you think about this feature?
Would you accept a PR with this functionality?
The text was updated successfully, but these errors were encountered: