Skip to content

Enhance the health framework to enqueue a deadline instead of an empty token#7829

Closed
L3n41c wants to merge 2 commits intomainfrom
lenaic/healthdeadline
Closed

Enhance the health framework to enqueue a deadline instead of an empty token#7829
L3n41c wants to merge 2 commits intomainfrom
lenaic/healthdeadline

Conversation

@L3n41c
Copy link
Copy Markdown
Member

@L3n41c L3n41c commented Apr 8, 2021

What does this PR do?

The health framework works by enqueuing tokens in a channel and checking that the monitored components are regularly popping those tokens from the channel.
This change adds a deadline inside the token so that the monitored components can know when they absolutely need to come back popping elements from the health channel before being considered as stuck and being flagged as unhealthy.

Motivation

The deadline conveyed through the health channel token can then be used to build a context.Context that can be cascaded down to the remote API calls like how it is done in #7605 in the ad-service component, the ad-config-provider-* component, the ad-dockerlistener component, the ad-ecslistener component, the ad-kubeletlistener component, etc.

Additional Notes

Anything else we should know when reviewing?

Describe your test plan

This change cannot be tested alone. It’s part of #7605.

@L3n41c L3n41c added this to the 7.28.0 milestone Apr 8, 2021
@L3n41c L3n41c requested a review from a team as a code owner April 8, 2021 06:07
@L3n41c L3n41c force-pushed the lenaic/healthdeadline branch from ceaccd7 to 46b3d28 Compare April 8, 2021 07:21
Comment thread pkg/status/health/health.go Outdated
@L3n41c L3n41c modified the milestones: 7.28.0, 7.29.0 Apr 16, 2021
@L3n41c L3n41c modified the milestones: 7.29.0, 7.30.0 May 28, 2021
@L3n41c
Copy link
Copy Markdown
Member Author

L3n41c commented Jul 8, 2021

Already included in #7605.

@L3n41c L3n41c closed this Jul 8, 2021
@dd-devflow dd-devflow Bot deleted the lenaic/healthdeadline branch April 19, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants