When pod listing, filter out unschedulable and scheduler unprocessed pods not in the list of allowed schedulers#8869
Conversation
|
@damikag: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
…pods not in the list of allowed schedulers
6b8471c to
08b15bb
Compare
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
1 similar comment
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damikag, x13n 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 |
|
/cherry-pick cluster-autoscaler-release-1.35 |
|
@jackfrancis: new pull request created: #9165 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-sigs/prow repository. |
When pod listing, filter out unschedulable and scheduler unprocessed pods not in the list of allowed schedulers.
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR introduces new command line flag where a list of schedulers can be specified. If specified, cluster autoscaler will filter out pods not belong to those schedulers at the very beginning of the CA loop.
This feature is useful for customs CA configurations where CA does not intends to help pods targeting some custom schedulers. Specially in large clusters when there are thousands of unschedulbale pods which are not intended for CA, it adds unnecessary extra overheads and could affect CA decision making. This flag can be used as a mitigation for such cases.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: