-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Start informers after leader election #115754
Conversation
Hi @linxiulei. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
/lgtm cancel that is an good point indeed |
I investigated it a bit. As far as I could see for other components (eg. KCM), they only start caching after leader election. Maybe scheduler is very latency sensitive but IMHO, I'd prefer memory efficiency than scheduling latency here. |
Sounds like it should be an option. Not everyone would be happy with this. |
I think quick failover is important for HA, so prefer to keep it as it-is. I would not take it a bug. |
@kerthcet: The label(s) In 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. |
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.
one suggestion on the config field doc to avoid double negatives, lgtm otherwise
/lgtm |
LGTM label has been added. Git tree hash: d298ea32aaebb28f0a3c101898b2e3a14b8cffa4
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, liggitt, linxiulei 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 |
…tion If scheduler fails to be active (elected if leader election is enabled), setting this option will not start informers so that to avoid memory overhead. Signed-off-by: Eric Lin <exlin@google.com>
/lgtm |
LGTM label has been added. Git tree hash: ac721a233a7833ce7415e588e8dced9891d5b677
|
This PR introduces a new config API in KubeSchedulerConfiguration that can provide a tradeoff between memory efficiency and scheduling speed when their leadership is updated in kube-scheduler. I think this PR should have a release note item. WDYT? |
oh, that is correct. It's adding an API field, so it's user visible. @linxiulei please add a release note. |
Done. Thanks @everpeace & @alculquicondor |
nit: /release-note-edit
we use the yaml/json name in documentation |
If scheduler fails to be elected, it should not start informers so that to avoid memory overhead.
Signed-off-by: Eric Lin exlin@google.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
Improve
kube-scheduler
memory efficiencyWhich issue(s) this PR fixes:
Fixes #115753
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: