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: revise node topology reporting for the kubelet cpu manager #2015

Conversation

saintube
Copy link
Member

Ⅰ. Describe what this PR does

  • CPU topology reporting: always update the NodeResourceTopology's annotation node.koordinator.sh/node-cpu-allocs even if the Kubelet cpu manager policy is none or it failed to read the checkpoint file, instead of only updating when it succeeded in parsing the checkpoint file and at least one pod is managed by the static policy. It also helps when we want the koordlet to ignore the cpu manager cpuset in some special cases.
  • Command args: Remove the misused argument cgroup-kube-dir. Add an argument to parameterize the host directory /var/lib/kubelet.

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

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

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

Project coverage is 68.80%. Comparing base (af172b1) to head (80a327a).

Files Patch % Lines
...statesinformer/impl/states_noderesourcetopology.go 77.27% 3 Missing and 2 partials ⚠️
...ordlet/qosmanager/plugins/blkio/blkio_reconcile.go 0.00% 1 Missing ⚠️
pkg/koordlet/util/system/config.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2015      +/-   ##
==========================================
+ Coverage   68.78%   68.80%   +0.02%     
==========================================
  Files         422      422              
  Lines       39058    39061       +3     
==========================================
+ Hits        26866    26877      +11     
+ Misses       9865     9862       -3     
+ Partials     2327     2322       -5     
Flag Coverage Δ
unittests 68.80% <74.07%> (+0.02%) ⬆️

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.

@saintube saintube force-pushed the koordlet-support-disable-kubelet-cpu-manager-reporting branch 2 times, most recently from a5cc956 to e58a3a7 Compare April 23, 2024 06:54
Signed-off-by: saintube <saintube@foxmail.com>
@saintube saintube force-pushed the koordlet-support-disable-kubelet-cpu-manager-reporting branch from e58a3a7 to 80a327a Compare April 25, 2024 09:59
@zwzhang0107
Copy link
Contributor

/lgtm
/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zwzhang0107

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 3b6167d into koordinator-sh:main Apr 25, 2024
20 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.

None yet

2 participants