-
Notifications
You must be signed in to change notification settings - Fork 451
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 health manager #2609
Fix health manager #2609
Conversation
/invite @rfranzke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thank you!
}) | ||
|
||
Describe("#Get", func() { | ||
It("should get the correct status (true)", func() { | ||
d.health = true | ||
Expect(d.health).To(BeTrue()) | ||
Expect(d.Get()).To(BeTrue()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
I am just curious why sometimes .health
is used, and sometimes .Get()
in the tests?
@vpnachev In the tests for the I think we can go ahead with the /merge. |
How to categorize this PR?
/area quality
/area robustness
/kind bug
/priority normal
What this PR does / why we need it:
The periodic health manager seemed to be unstable under CPU pressure/throttling (e.g. in our CI pipelines https://concourse.ci.gardener.cloud/teams/gardener/pipelines/gardener-master/jobs/master-pull-request-job/builds/17).
While I couldn't get the failing unit tests to break on my machine, it was easy to reproduce while running in a docker container with restricted CPU shares.
This PR makes the health manager(s) more robust for concurrent access by accurately locking access to the managers' state members.
Which issue(s) this PR fixes:
Ref #2532
Special notes for your reviewer:
Release note: