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

apis: add host application metric to node metric crd #1725

Merged

Conversation

zwzhang0107
Copy link
Contributor

@zwzhang0107 zwzhang0107 commented Oct 27, 2023

Ⅰ. Describe what this PR does

add apis for reporting metric of host application, this can be also used for reporting the whole yarn task resource usage.

For out-of-band applications with batch priority, resource calculation of batch allocatable should excluded their usage, otherwise it will be count into system usage.

Ⅱ. Does this pull request fix one issue?

#1639

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

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (7601ae4) 65.95% compared to head (9f2cc89) 66.04%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1725      +/-   ##
==========================================
+ Coverage   65.95%   66.04%   +0.08%     
==========================================
  Files         386      386              
  Lines       41974    42049      +75     
==========================================
+ Hits        27686    27773      +87     
+ Misses      12240    12228      -12     
  Partials     2048     2048              
Flag Coverage Δ
unittests 66.04% <93.33%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...duler/plugins/nodenumaresource/resource_manager.go 84.19% <93.33%> (+0.86%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Copy link
Member

@jasonliu747 jasonliu747 left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Member

@FillZpp FillZpp left a comment

Choose a reason for hiding this comment

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

/lgtm

@zwzhang0107
Copy link
Contributor Author

/approve

@koordinator-bot koordinator-bot bot merged commit 06eedc1 into koordinator-sh:main Nov 7, 2023
19 checks passed
@zwzhang0107 zwzhang0107 deleted the add-host-app-metric branch November 7, 2023 06:10
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