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

koord-scheduler: optimize the process after reservation scheduling fails #532

Conversation

eahydra
Copy link
Member

@eahydra eahydra commented Aug 25, 2022

Signed-off-by: Joseph joseph.t.lee@outlook.com

Ⅰ. Describe what this PR does

koord-scheduler: optimize the process after reservation scheduling fails

  • Improve the readability of the Reservation scheduling failure message
  • Report FailedScheduling Event
  • Add UnschedulableQueue first to avoid frequent retry scheduling

Ⅱ. Does this pull request fix one issue?

fix #530 #528 #534

Ⅲ. Describe how to verify it

Ⅳ. 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

@codecov
Copy link

codecov bot commented Aug 25, 2022

Codecov Report

Merging #532 (54cee79) into main (3ccf4b1) will decrease coverage by 0.19%.
The diff coverage is 67.41%.

@@            Coverage Diff             @@
##             main     #532      +/-   ##
==========================================
- Coverage   67.24%   67.04%   -0.20%     
==========================================
  Files         160      160              
  Lines       16992    16996       +4     
==========================================
- Hits        11426    11395      -31     
- Misses       4719     4752      +33     
- Partials      847      849       +2     
Flag Coverage Δ
unittests 67.04% <67.41%> (-0.20%) ⬇️

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

Impacted Files Coverage Δ
pkg/scheduler/plugins/reservation/utils.go 72.39% <0.00%> (-4.76%) ⬇️
pkg/util/utils.go 66.66% <0.00%> (-11.60%) ⬇️
pkg/scheduler/eventhandlers/reservation_handler.go 50.00% <55.55%> (+1.14%) ⬆️
pkg/scheduler/plugins/reservation/plugin.go 76.99% <89.18%> (+0.08%) ⬆️
...cheduler/plugins/reservation/garbage_collection.go 82.14% <100.00%> (ø)
pkg/koordlet/runtimehooks/reconciler/reconciler.go 71.57% <0.00%> (-7.37%) ⬇️

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

@eahydra eahydra force-pushed the fix_reservation_unschedulable_message branch from c97c06b to be01564 Compare August 25, 2022 13:34
@eahydra eahydra marked this pull request as ready for review August 25, 2022 13:36
@koordinator-bot koordinator-bot bot requested a review from FillZpp August 25, 2022 13:36
@eahydra eahydra added this to the v0.7 milestone Aug 25, 2022
@eahydra eahydra linked an issue Aug 25, 2022 that may be closed by this pull request
@eahydra eahydra force-pushed the fix_reservation_unschedulable_message branch 2 times, most recently from 96f3780 to d273315 Compare August 25, 2022 18:00
… fails

- Improve the readability of the Reservation scheduling failure message
- Report FailedScheduling Event
- Add UnschedulableQueue first to avoid frequent retry scheduling

Signed-off-by: Joseph <joseph.t.lee@outlook.com>
@eahydra eahydra force-pushed the fix_reservation_unschedulable_message branch from d273315 to 54cee79 Compare August 26, 2022 03:11
Copy link
Member

@jasonliu747 jasonliu747 left a comment

Choose a reason for hiding this comment

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

/lgtm

@saintube
Copy link
Member

/lgtm

@hormes
Copy link
Member

hormes commented Aug 26, 2022

/lgtm
/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hormes

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 5a50dbb into koordinator-sh:main Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants