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

koordlet: fix bug that cpu eviction does not take effect #1932

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

wangxiaoq
Copy link
Contributor

Ⅰ. Describe what this PR does

cpuset's value of sanbox container cloud always be set to all cpu ids of the machine by kubelet, if we use this value, the cpu eviction function will not take effect.

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. 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 78.57143% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 67.51%. Comparing base (987c076) to head (85a012f).

Files Patch % Lines
pkg/koordlet/util/node.go 78.57% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1932      +/-   ##
==========================================
+ Coverage   67.48%   67.51%   +0.03%     
==========================================
  Files         420      420              
  Lines       46858    46865       +7     
==========================================
+ Hits        31620    31641      +21     
+ Misses      12941    12920      -21     
- Partials     2297     2304       +7     
Flag Coverage Δ
unittests 67.51% <78.57%> (+0.03%) ⬆️

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.

@zwzhang0107
Copy link
Contributor

looks great! it will be better to add some ut for this..

@koordinator-bot koordinator-bot bot added size/M and removed size/S labels Mar 5, 2024
@wangxiaoq wangxiaoq force-pushed the cpu-evict branch 6 times, most recently from 50889c6 to 2c6eb07 Compare March 5, 2024 13:18
Signed-off-by: Wang Xiaoqiang <wangxiaoqiang@qiyi.com>
@hormes
Copy link
Member

hormes commented Mar 6, 2024

/lgtm

Copy link
Member

@saintube saintube left a comment

Choose a reason for hiding this comment

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

/lgtm

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saintube

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 e0f2d59 into koordinator-sh:main Mar 7, 2024
21 checks passed
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.

4 participants