-
Notifications
You must be signed in to change notification settings - Fork 462
Bug 1817075: operator/controller pods: faster leader elections #2603
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
Bug 1817075: operator/controller pods: faster leader elections #2603
Conversation
As a temporary solution in lieu of graceful shutdowns, have the operator and controller pods use faster defaults for lease/renew/ retry, which shouldn't otherwise notably affect operation other than the new pod acquiring a new lease faster during upgrades, saving some waiting time. See: https://bugzilla.redhat.com/show_bug.cgi?id=1817075 Signed-off-by: Yu Qi Zhang <[email protected]>
|
@yuqi-zhang: This pull request references Bugzilla bug 1817075, 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. |
|
@yuqi-zhang: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
From MCC log of upgrade job from this PR, I see time needed to acquire leader lease for upgrade job is ~1 min which was earlier ~2 mins /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sinnykumari, yuqi-zhang 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 |
|
@yuqi-zhang: All pull requests linked via external trackers have merged: Bugzilla bug 1817075 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. |
|
This isn't the direction we want to go. In order to handle short-term network (or other) disruption, all clients (including those using leases) should be able to make it at least 60 seconds without the kube-apiserver available. To have rapid hand-off in normal cases, clients using leases need to make use of graceful release. We found this general case (not this one specifically) during single-node, when a 60 second disruption led to mass failures. Is the alternative to this PR, providing graceful lease release already open so we can assess the size? |
As a temporary solution in lieu of graceful shutdowns, have the
operator and controller pods use faster defaults for lease/renew/
retry, which shouldn't otherwise notably affect operation other
than the new pod acquiring a new lease faster during upgrades,
saving some waiting time.
Example in CVO: https://github.com/openshift/cluster-version-operator/blob/706a0062cade643767e95da2e6142823e8399986/pkg/start/start.go#L51