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)pap: power aware plugin = policy advisor + power eviction plugin + power capping plugin #696

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

h-w-chen
Copy link

@h-w-chen h-w-chen commented Sep 9, 2024

What type of PR is this?

feature: power aware plugin in sys-advisor

What this PR does / why we need it:

  • This PR implements the policy making part(a.k.a. controller) of power aware feature.
  • It also implements the eviction plugin to facilitate the eviction manager (typical part of agent), and the power capping plugin to facilitate the power capper (residing in qrm; its implementation is not in this PR).

Which issue(s) this PR fixes:

NA

Special notes for your reviewer:

the power usage data collection part is not included yet. A locl impi reader shall be provided as temporary fillup; the ideal solution if getting power usage data from external data source like malachite.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 57.52688% with 237 lines in your changes missing coverage. Please review.

Project coverage is 57.18%. Comparing base (99996fc) to head (953dd78).
Report is 30 commits behind head on main.

Files with missing lines Patch % Lines
...advisor/plugin/poweraware/capper/server/service.go 31.64% 53 Missing and 1 partial ⚠️
...lugin/poweraware/evictor/server/evictor_service.go 57.14% 36 Missing and 3 partials ⚠️
.../agent/sysadvisor/plugin/poweraware/power_aware.go 42.22% 26 Missing ⚠️
...advisor/plugin/poweraware/controller/controller.go 61.90% 15 Missing and 9 partials ⚠️
...sysadvisor/plugin/poweraware/capper/instruction.go 67.21% 15 Missing and 5 partials ⚠️
...advisor/plugin/poweraware/controller/reconciler.go 45.83% 12 Missing and 1 partial ⚠️
...sadvisor/plugin/poweraware/capper/server/server.go 0.00% 11 Missing ⚠️
...sadvisor/plugin/poweraware/evictor/load_evictor.go 63.33% 7 Missing and 4 partials ⚠️
...plugin/poweraware/capper/server/fanout_notifier.go 71.87% 6 Missing and 3 partials ⚠️
...kg/agent/sysadvisor/plugin/poweraware/spec/spec.go 84.31% 8 Missing ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #696      +/-   ##
==========================================
- Coverage   57.18%   57.18%   -0.01%     
==========================================
  Files         558      584      +26     
  Lines       54146    55332    +1186     
==========================================
+ Hits        30966    31643     +677     
- Misses      19305    19744     +439     
- Partials     3875     3945      +70     
Flag Coverage Δ
unittest 57.18% <57.52%> (-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.

@h-w-chen h-w-chen changed the title WIP: pap: power aware plugin = advisor plugin + power eviction server + power cap server (feat)pap: power aware plugin = advisor plugin + power eviction server + power cap server Sep 11, 2024
@h-w-chen h-w-chen changed the title (feat)pap: power aware plugin = advisor plugin + power eviction server + power cap server (feat)pap: power aware plugin = advisor plugin + power eviction plugin + power capping plugin Sep 11, 2024
@h-w-chen h-w-chen changed the title (feat)pap: power aware plugin = advisor plugin + power eviction plugin + power capping plugin (feat)pap: power aware plugin = policy advisor + power eviction plugin + power capping plugin Sep 11, 2024
@xu282934741 xu282934741 added the workflow/need-review review: test succeeded, need to review label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workflow/need-review review: test succeeded, need to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants