-
Notifications
You must be signed in to change notification settings - Fork 213
Bug 1985802: Updating the lease, renew, retry duration #634
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
Conversation
|
/bugzilla refresh |
|
@LalatenduMohanty: No Bugzilla bug is referenced in the title of this pull request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@LalatenduMohanty: This pull request references Bugzilla bug 1985802, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/uncc |
|
/lgtm [Pre-Merge QA Testing]
Best Regards. |
|
@pamoedom: This pull request references Bugzilla bug 1985802, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
9880cec to
7328f52
Compare
7328f52 to
bd0ae2c
Compare
For both single node clusters (SNO) and non-SNO clusters leader election need to tolerate 60s worth of disruption [2]. The default in library-go has been upgaded to handle this case in 4.9 [1]. In essence, the kube-apiserver downtime tolerance is floor(renewDeadline/retryPeriod)*retryPeriod-retryPeriod. Recommended defaults are LeaseDuration=137s RenewDealine=107s RetryPeriod=26s. These are the configurable values in k8s.io/client-go based leases and controller-runtime exposes them. This gives us clock skew tolerance == 30s kube-apiserver downtime tolerance == 78s worst non-graceful lease reacquisition == 163s worst graceful lease reacquisition == 26s For learning more about client side leader election config refer to [3] [1] https://github.com/openshift/library-go/blob/4b9033d00d37b88393f837a88ff541a56fd13621/pkg/config/leaderelection/leaderelection.go#L84 [2] https://github.com/openshift/enhancements/blob/c91e5ae66ed590405fb205433131c6a75f05610d/CONVENTIONS.md#high-availability [3] https://pkg.go.dev/k8s.io/client-go/tools/leaderelection#LeaderElectionConfig Signed-off-by: Lalatendu Mohanty <[email protected]>
bd0ae2c to
d39b5c5
Compare
wking
left a 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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LalatenduMohanty, pamoedom, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@LalatenduMohanty: All pull requests linked via external trackers have merged: Bugzilla bug 1985802 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
As per [1]
[1] https://github.com/openshift/library-go/blob/4b9033d00d37b88393f837a88ff541a56fd13621/pkg/config/leaderelection/leaderelection.go#L84
Signed-off-by: Lalatendu Mohanty [email protected]