kubewharf / katalyst-core

Katalyst aims to provide a universal solution to help improve resource utilization and optimize the overall costs in the cloud. This is the core components in Katalyst system, including multiple agents and centralized components
Apache License 2.0
389 stars 91 forks source link

feat(cpu): add cpu plugin for vci #629

Open gaohuatao-1 opened 2 weeks ago

gaohuatao-1 commented 2 weeks ago

What type of PR is this?

Features

What this PR does / why we need it:

To support customized cpu policy for VCI with pod level resources.

Which issue(s) this PR fixes:

Special notes for your reviewer:

CLAassistant commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 1.45078% with 951 lines in your changes missing coverage. Please review.

Project coverage is 55.72%. Comparing base (aec50da) to head (a99b51e).

Files Patch % Lines
.../agent/qrm-plugins/cpu/vcipolicy/cpu_assignment.go 0.00% 379 Missing :warning:
pkg/agent/qrm-plugins/cpu/vcipolicy/policy.go 0.00% 181 Missing :warning:
pkg/util/machine/topology.go 6.92% 118 Missing and 3 partials :warning:
...rm-plugins/cpu/vcipolicy/state/state_checkpoint.go 0.00% 102 Missing :warning:
...g/agent/qrm-plugins/cpu/vcipolicy/policy_static.go 0.00% 65 Missing :warning:
...agent/qrm-plugins/cpu/vcipolicy/state/state_mem.go 0.00% 48 Missing :warning:
...kg/agent/qrm-plugins/cpu/vcipolicy/vci/resource.go 0.00% 29 Missing :warning:
...gent/qrm-plugins/cpu/vcipolicy/state/checkpoint.go 0.00% 17 Missing :warning:
pkg/agent/qrm-plugins/cpu/vcipolicy/state/state.go 0.00% 5 Missing :warning:
pkg/util/machine/util.go 50.00% 2 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #629 +/- ## ========================================== - Coverage 56.66% 55.72% -0.94% ========================================== Files 545 553 +8 Lines 51541 52506 +965 ========================================== + Hits 29205 29259 +54 - Misses 18639 19547 +908 - Partials 3697 3700 +3 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/629/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | Coverage Δ | | |---|---|---| | [unittest](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/629/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `55.72% <1.45%> (-0.94%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.