Skip to content
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

feat(health): fancy composable status #147

Merged
merged 12 commits into from
Jul 31, 2024
Merged

Conversation

vknabel
Copy link
Contributor

@vknabel vknabel commented Jul 26, 2024

Some health checks are over-sensitive and in most cases composed of many async health checks that need to be buffered periodically, we decided to extract this shared logic into composable micor-health-checks as proposed in this PR.

Todo:

  • Currently the whole healthstatus module is untested (in metal-lib). Write some basic tests.

@vknabel vknabel requested a review from a team as a code owner July 26, 2024 13:09
@vknabel vknabel requested a review from Gerrit91 July 26, 2024 13:11
Copy link
Contributor

@Gerrit91 Gerrit91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool PR. It makes the health status composable. Also adds a bit of complexity, but I think it's worth it.

rest/health.go Outdated Show resolved Hide resolved
healthstatus/async-check.go Outdated Show resolved Hide resolved
healthstatus/deferred-error-check.go Outdated Show resolved Hide resolved
healthstatus/deferred-error-check.go Outdated Show resolved Hide resolved
healthstatus/common.go Outdated Show resolved Hide resolved
rest/health.go Outdated Show resolved Hide resolved
@vknabel vknabel requested a review from Gerrit91 July 30, 2024 12:41
@Gerrit91 Gerrit91 merged commit e2a382e into master Jul 31, 2024
2 checks passed
@Gerrit91 Gerrit91 deleted the very-fancy-healthchecks branch July 31, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants