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

scheduler: improve the failed event of Reservation's scheduling #1947

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

ZiMengSheng
Copy link
Contributor

@ZiMengSheng ZiMengSheng commented Mar 12, 2024

Ⅰ. Describe what this PR does

The reservation plugin of koord-scheduler traverses all reservations with the Restricted policy and determines whether a certain Reservation satisfies the Pod. When all reservations cannot be satisfied, we lose reasonable information, such as which resources cannot be satisfied, which can help users diagnose themselves.

So this PR aggregate these messages to users.

Ⅱ. Does this pull request fix one issue?

fixes #1909

Ⅲ. Describe how to verify it

make pods requiring allocate resource from reservation, check the failed event, like follows.

Warning FailedScheduling 12s default-scheduler 0/50 nodes are available: 1 Insufficient cpu by reservation.

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 88.57143% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 67.51%. Comparing base (3bf7ba8) to head (389e970).
Report is 3 commits behind head on main.

Files Patch % Lines
pkg/scheduler/plugins/reservation/plugin.go 88.57% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1947   +/-   ##
=======================================
  Coverage   67.50%   67.51%           
=======================================
  Files         420      420           
  Lines       46961    47040   +79     
=======================================
+ Hits        31703    31760   +57     
- Misses      12949    12968   +19     
- Partials     2309     2312    +3     
Flag Coverage Δ
unittests 67.51% <88.57%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: wangjianyu.wjy <wangjianyu.wjy@alibaba-inc.com>
Copy link
Member

@eahydra eahydra left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

@buptcozy buptcozy left a comment

Choose a reason for hiding this comment

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

/lgtm

@buptcozy
Copy link
Contributor

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: buptcozy

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

@koordinator-bot koordinator-bot bot merged commit a85121a into koordinator-sh:main Mar 13, 2024
20 checks passed
ls-2018 pushed a commit to ls-2018/koordinator that referenced this pull request Mar 25, 2024
…dinator-sh#1947)

Signed-off-by: wangjianyu.wjy <wangjianyu.wjy@alibaba-inc.com>
Co-authored-by: wangjianyu.wjy <wangjianyu.wjy@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[proposal] improve the failed event of Reservation's scheduling
3 participants