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

[release-4.17][manual] sched: always set the leader election parameters #1087

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

ffromani
Copy link
Member

Because of a overlook, we used to set the leader election params only if replicas > 1 was requested. This left the key and default corner case of replicas=1 with compiled in defaults, which are questionable at best and most likely harmful for our use case.

Make sure to always set sane parameters, obviously taking into account the user desires from the spec (Replicas field).

Add more logs to make troubleshooting easier

manual cherry-pick of #1080

Signed-off-by: Francesco Romani [email protected]
(cherry picked from commit d83cc70)

Because of a overlook, we used to set the leader election
params only if replicas > 1 was requested. This left
the key *and default* corner case of replicas=1 with
compiled in defaults, which are questionable at best
and most likely harmful for our use case.

Make sure to always set sane parameters, obviously
taking into account the user desires from the spec
(Replicas field).

Add more logs to make troubleshooting easier

Signed-off-by: Francesco Romani <[email protected]>
(cherry picked from commit d83cc70)
@openshift-ci openshift-ci bot requested review from swatisehgal and Tal-or November 21, 2024 07:49
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 21, 2024
@Tal-or
Copy link
Collaborator

Tal-or commented Nov 25, 2024

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 25, 2024
Copy link
Contributor

openshift-ci bot commented Nov 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ffromani, Tal-or

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 0245da2 into release-4.17 Nov 25, 2024
7 checks passed
@ffromani ffromani deleted the leader-election-extras-4.17 branch November 25, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants