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 : fix deviceshare plugin of add\remove pod #1963

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

xulinfei1996
Copy link
Contributor

@xulinfei1996 xulinfei1996 commented Mar 20, 2024

Ⅰ. Describe what this PR does

fix deviceshare plugin of add\remove pod. For example, pod A preempts a pod in node1 in the last round preemption. If the next to schedule pod is pod B, framework will add pod A when RunFiltersWithNominatedsPod. However, the deviceSharePlugin's allocation result of pod A is not stored. As a result, the resources nominated by pod A may be occupied by pod B, although pod B's priority is lower than pod A, this case will be happened in fractional gpu allocation or topology aware allocation.

Ⅱ. Does this pull request fix one issue?

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

Signed-off-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

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

Project coverage is 67.60%. Comparing base (609867a) to head (c937fc8).
Report is 4 commits behind head on main.

Files Patch % Lines
pkg/scheduler/plugins/deviceshare/plugin.go 91.13% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1963      +/-   ##
==========================================
+ Coverage   67.55%   67.60%   +0.05%     
==========================================
  Files         420      421       +1     
  Lines       47058    47145      +87     
==========================================
+ Hits        31788    31872      +84     
+ Misses      12961    12959       -2     
- Partials     2309     2314       +5     
Flag Coverage Δ
unittests 67.60% <94.01%> (+0.05%) ⬆️

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.

@buptcozy
Copy link
Contributor

/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 ad01533 into koordinator-sh:main Mar 25, 2024
20 checks passed
xulinfei1996 pushed a commit to xulinfei1996/koordinator that referenced this pull request Mar 25, 2024
xulinfei1996 pushed a commit to xulinfei1996/koordinator that referenced this pull request Mar 25, 2024
…tor-sh#1963)

Signed-off-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
koordinator-bot bot pushed a commit that referenced this pull request Mar 25, 2024
…#1971)

Signed-off-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
Co-authored-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
ls-2018 pushed a commit to ls-2018/koordinator that referenced this pull request Mar 25, 2024
…1963)

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.

None yet

2 participants