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

fix(healthcheck) lower the cleanup check frequency #116

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

locao
Copy link
Contributor

@locao locao commented Jul 7, 2022

The health-check timer also checks if targets must be removed. To safely remove targets, the targets list is locked. Before the change in this PR, said check ran on every health-check cycle, and if there are substantial targets, a bazillion locks will be created. This fix avoids that issue by lowering the frequency the cleanup list is checked.

The side-effect is that targets marked for cleanup may exist for more time (2.5s) than expected, and some active checks that are set to be removed may run for a bit longer.

the health-check timer also checks if targets must be removed. to
safely remove targets, the targets list is locked. if this check runs
on every health-check cycle and there are a large number of targets, a
bazillion locks will be created. this change avoids that by lowering
the frequency the cleanup list is checked.

the side-effect is that targets marked for cleanup may exist for more
time (2.5s) than expected, and some unexpected active checks could
happen.
@locao locao merged commit e434007 into release/1.5.x Jul 7, 2022
@locao locao deleted the fix/lower-locking-freq branch July 7, 2022 19:34
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.

None yet

1 participant