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

Remove strict check in scorer plugins and respect maxskew, requeue when no pods available rather than fail Scheduler #6524

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

aavarghese
Copy link
Contributor

@aavarghese aavarghese commented Sep 20, 2022

Signed-off-by: aavarghese avarghese@us.ibm.com

Fixes #6523

Proposed Changes

  • Removed strict check for at least one pod per zone/node in priority plugins: AvailabilityZonePriority and AvailabilityNodePriority. Reason: Some worker/control nodes may or may not be assigned to any particular zone topology and so will not have pod replicas created in them...
  • Return "Requeue" request to controller when there are more vreplicas to place that need autoscaler to scale up, instead of throwing a Scheduler failed error

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

Remove strict check in scorer plugins and respect max skew parameter. Requeue request when no pods available rather than fail scheduler.

…en no pods available rather than fail scheduler

Signed-off-by: aavarghese <avarghese@us.ibm.com>
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 20, 2022
@codecov
Copy link

codecov bot commented Sep 20, 2022

Codecov Report

Base: 81.98% // Head: 81.96% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (07ecc1f) compared to base (645fd88).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6524      +/-   ##
==========================================
- Coverage   81.98%   81.96%   -0.02%     
==========================================
  Files         235      235              
  Lines       11733    11726       -7     
==========================================
- Hits         9619     9611       -8     
- Misses       1642     1644       +2     
+ Partials      472      471       -1     
Impacted Files Coverage Δ
...labilitynodepriority/availability_node_priority.go 81.39% <ø> (+11.18%) ⬆️
...labilityzonepriority/availability_zone_priority.go 82.60% <ø> (+11.18%) ⬆️
pkg/scheduler/scheduler.go 100.00% <ø> (ø)
pkg/scheduler/statefulset/scheduler.go 79.13% <100.00%> (-2.80%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aavarghese
Copy link
Contributor Author

/cc @pierDipi @lionelvillard @aslom

…/nodes with no schedulable pods

Signed-off-by: aavarghese <avarghese@us.ibm.com>
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 21, 2022
@aavarghese
Copy link
Contributor Author

/cc @pierDipi

@knative-prow knative-prow bot requested a review from pierDipi September 21, 2022 10:02
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2022
@knative-prow
Copy link

knative-prow bot commented Sep 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aavarghese, pierDipi

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 21, 2022
@knative-prow knative-prow bot merged commit 54174e3 into knative:main Sep 21, 2022
@aavarghese
Copy link
Contributor Author

/cherry-pick release-1.5

@aavarghese
Copy link
Contributor Author

/cherry-pick release-1.6

@aavarghese
Copy link
Contributor Author

/cherry-pick release-1.7

@knative-prow-robot
Copy link
Contributor

@aavarghese: new pull request created: #6526

In response to this:

/cherry-pick release-1.5

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.

@knative-prow-robot
Copy link
Contributor

@aavarghese: new pull request created: #6527

In response to this:

/cherry-pick release-1.6

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.

@knative-prow-robot
Copy link
Contributor

@aavarghese: new pull request created: #6528

In response to this:

/cherry-pick release-1.7

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.

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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
3 participants