-
Notifications
You must be signed in to change notification settings - Fork 47
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
Use Leases for etcd member health checks #214
Conversation
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 for the fast feedback @amshuman-kr.
No, there is no additional configuration required. Leases will be cached automatically. #215 is an optimization, so that we don't cache all |
I now remember that controller-runtime now automatically caches if there one list call. Sounds good 👍 |
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 for the changes @timuthy! LGTM
6dbb272
to
977c98d
Compare
@amshuman-kr as discussed, I added a command line option to disable the lease cache. |
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 for disabling the lease
cache! LGTM
/invite @shreyas-s-rao @abdasgupta @ishan16696 @aaronfern The changes look good from my side. Shall we merge this? |
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1 | |||
kind: CustomResourceDefinition | |||
metadata: | |||
annotations: | |||
controller-gen.kubebuilder.io/version: v0.5.0 | |||
controller-gen.kubebuilder.io/version: v0.4.1 |
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.
Just some clarification needed.
Is this an intended change?
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.
Please see #193 (comment)
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
How to categorize this PR?
/area scalability
/kind api-change
/kind enhancement
What this PR does / why we need it:
This PR changes Druid's health checks in a way that it considers
Lease
resources in order to find out the readiness of a etcd cluster member.Which issue(s) this PR fixes:
Fixes #206
Fixes #219
Special notes for your reviewer:
Please have a look at the separate commits for an easier review process.
The creation/deletion of
Lease
objects through Druid will follow later in a separate PR./cc @amshuman-kr @shreyas-s-rao
Release note: