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: add metrics about be used cpu and node used memory #2283

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

leason00
Copy link
Contributor

@leason00 leason00 commented Nov 29, 2024

Ⅰ. Describe what this PR does

metric of newly added BE resource usage.
It has the following functions:

  • It is used to sense the proportion of BE resources used
  • By comparing with be_suppress_cpu_cores, judge how satisfied the BE Pod is.

Ⅱ. 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 Nov 29, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 6 lines in your changes missing coverage. Please review.

Project coverage is 66.04%. Comparing base (13a7107) to head (192fd68).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
pkg/koordlet/metrics/common.go 50.00% 2 Missing and 1 partial ⚠️
pkg/koordlet/metrics/cpu_suppress.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2283      +/-   ##
==========================================
- Coverage   66.04%   66.04%   -0.01%     
==========================================
  Files         454      457       +3     
  Lines       53438    53751     +313     
==========================================
+ Hits        35295    35501     +206     
- Misses      15601    15699      +98     
- Partials     2542     2551       +9     
Flag Coverage Δ
unittests 66.04% <57.14%> (-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.

@leason00 leason00 changed the title add metric be used cpu 1. add metric be used cpu 2. add metric node used memory Dec 3, 2024
@songtao98
Copy link
Contributor

/assign @zwzhang0107

@saintube saintube changed the title 1. add metric be used cpu 2. add metric node used memory koordlet: add metrics about be used cpu and node used memory Dec 4, 2024
@leason00
Copy link
Contributor Author

leason00 commented Dec 5, 2024

@saintube Please review again

@leason00 leason00 requested a review from saintube December 5, 2024 11:12
@leason00 leason00 requested a review from saintube December 6, 2024 02:25
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 koordinator-bot bot merged commit 053d636 into koordinator-sh:main Dec 10, 2024
22 checks passed
lijunxin559 pushed a commit to lijunxin559/koordinator that referenced this pull request Dec 10, 2024
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.

3 participants