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: extend reservation nominator to support reservation preemption #1936

Merged

Conversation

xulinfei1996
Copy link
Contributor

@xulinfei1996 xulinfei1996 commented Mar 4, 2024

Ⅰ. Describe what this PR does

Extend the reservation nominator. Reservation plugin implements the BeforeFilter function. In this function, we do add the nominated reservation infos.

Ⅱ. Does this pull request fix one issue?

fix #1935

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

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

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

Project coverage is 67.47%. Comparing base (2d34fc6) to head (f21b4d2).
Report is 6 commits behind head on main.

Files Patch % Lines
pkg/scheduler/plugins/reservation/transformer.go 48.38% 11 Missing and 5 partials ⚠️
.../frameworkext/eventhandlers/reservation_handler.go 12.50% 5 Missing and 2 partials ⚠️
pkg/scheduler/plugins/reservation/nominator.go 87.75% 5 Missing and 1 partial ⚠️
pkg/scheduler/frameworkext/framework_extender.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1936      +/-   ##
==========================================
+ Coverage   67.45%   67.47%   +0.01%     
==========================================
  Files         420      420              
  Lines       46849    46944      +95     
==========================================
+ Hits        31603    31674      +71     
- Misses      12945    12966      +21     
- Partials     2301     2304       +3     
Flag Coverage Δ
unittests 67.47% <66.30%> (+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.

pkg/scheduler/frameworkext/framework_extender_test.go Outdated Show resolved Hide resolved
pkg/scheduler/frameworkext/interface.go Outdated Show resolved Hide resolved
pkg/scheduler/frameworkext/interface.go Outdated Show resolved Hide resolved
pkg/scheduler/plugins/reservation/nominator.go Outdated Show resolved Hide resolved
@xulinfei1996 xulinfei1996 force-pushed the reservation-nominate branch 3 times, most recently from 49dcbe3 to 5970645 Compare March 5, 2024 08:09
…tion

Signed-off-by: xulinfei.xlf <xulinfei.xlf@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
@buptcozy Please take a look.

@buptcozy
Copy link
Contributor

buptcozy commented Mar 7, 2024

/lgtm

@buptcozy
Copy link
Contributor

buptcozy commented Mar 7, 2024

/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 3581c3d into koordinator-sh:main Mar 7, 2024
20 checks passed
ls-2018 pushed a commit to ls-2018/koordinator that referenced this pull request Mar 25, 2024
…tion (koordinator-sh#1936)

Signed-off-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
Co-authored-by: xulinfei.xlf <xulinfei.xlf@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] reservation nominator need to extend the reservation nominated node
3 participants