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

feat(qrm): Support for OOM priority as a QoS enhancement #371

Merged
merged 1 commit into from Dec 4, 2023

Conversation

y-ykcir
Copy link
Contributor

@y-ykcir y-ykcir commented Nov 20, 2023

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

#216

Special notes for your reviewer:

@csfldf

@CLAassistant
Copy link

CLAassistant commented Nov 20, 2023

CLA assistant check
All committers have signed the CLA.

@waynepeking348 waynepeking348 added the enhancement New feature or request label Nov 20, 2023
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

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

Comparison is base (1d2526f) 53.43% compared to head (fb0fdd1) 53.26%.
Report is 2 commits behind head on main.

Files Patch % Lines
...ugins/memory/dynamicpolicy/policy_async_handler.go 36.90% 98 Missing and 8 partials ⚠️
...memory/dynamicpolicy/policy_enhancement_handler.go 53.84% 28 Missing and 2 partials ⚠️
...g/agent/qrm-plugins/memory/dynamicpolicy/policy.go 35.89% 22 Missing and 3 partials ⚠️
...qrm-plugins/memory/dynamicpolicy/oom/calculator.go 34.61% 16 Missing and 1 partial ⚠️
pkg/agent/qrm-plugins/util/types.go 0.00% 5 Missing ⚠️
...visor/plugin/metric-emitter/syncer/node/advisor.go 0.00% 5 Missing ⚠️
...md/katalyst-agent/app/options/qrm/memory_plugin.go 42.85% 4 Missing ⚠️
...g/util/service-discovery/service_single_port_sd.go 60.00% 1 Missing and 3 partials ⚠️
pkg/util/qos/oom_priority.go 94.11% 3 Missing ⚠️
pkg/util/general/error.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #371      +/-   ##
==========================================
- Coverage   53.43%   53.26%   -0.18%     
==========================================
  Files         439      444       +5     
  Lines       48419    48807     +388     
==========================================
+ Hits        25874    25997     +123     
- Misses      19608    19867     +259     
- Partials     2937     2943       +6     
Flag Coverage Δ
unittest 53.26% <51.09%> (-0.18%) ⬇️

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.

go.mod Outdated Show resolved Hide resolved
pkg/agent/qrm-plugins/memory/dynamicpolicy/policy.go Outdated Show resolved Hide resolved
pkg/agent/qrm-plugins/memory/dynamicpolicy/policy.go Outdated Show resolved Hide resolved
pkg/agent/qrm-plugins/util/consts.go Outdated Show resolved Hide resolved
pkg/agent/qrm-plugins/util/util.go Outdated Show resolved Hide resolved
pkg/util/qos/oom_priority.go Outdated Show resolved Hide resolved
pkg/util/qos/oom_priority.go Show resolved Hide resolved
@csfldf
Copy link
Collaborator

csfldf commented Nov 20, 2023

please add or refine unit-tests until passing codecov/patch check, thanks

@y-ykcir y-ykcir force-pushed the feature/pod_webhook branch 17 times, most recently from 4cf9a43 to 8959b31 Compare November 27, 2023 12:32
@csfldf csfldf added the workflow/need-review review: test succeeded, need to review label Nov 27, 2023
@csfldf csfldf requested a review from caohe November 27, 2023 14:38
csfldf
csfldf previously approved these changes Nov 27, 2023
}

parsedOOMPriority, parseErr := strconv.Atoi(oomPriorityStr)

Copy link
Collaborator

Choose a reason for hiding this comment

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

it will be better to remove those unnecessary blank lines (to keep a uniform coding styles); need to check for all those coding styles

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@y-ykcir y-ykcir changed the title [WIP]feat(qrm): Support for OOM priority as a QoS enhancement feat(qrm): Support for OOM priority as a QoS enhancement Nov 28, 2023
@y-ykcir y-ykcir requested a review from csfldf November 28, 2023 11:42
Signed-off-by: ricky <yricky509@gmail.com>
@csfldf csfldf added workflow/merge-ready merge-ready: code is ready and can be merged and removed workflow/need-review review: test succeeded, need to review labels Dec 4, 2023
@waynepeking348 waynepeking348 merged commit ee85ef6 into kubewharf:main Dec 4, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workflow/merge-ready merge-ready: code is ready and can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants