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
435 stars 107 forks source link

feat(tmo): block config support kcc and optimize target size calc #693

Closed yadzhang closed 2 months ago

yadzhang commented 2 months ago

What type of PR is this?

Features

What this PR does / why we need it:

  1. tmo support new Integrated policy to combine PSI/Refault calculation result
  2. calculation result substract mapped memory size

Which issue(s) this PR fixes:

Special notes for your reviewer:

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 57.33333% with 32 lines in your changes missing coverage. Please review.

Project coverage is 56.92%. Comparing base (99996fc) to head (8170d9d). Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
...saware/resource/memory/plugin/memory_offloading.go 56.52% 24 Missing and 6 partials :warning:
.../agent/metric/provisioner/malachite/provisioner.go 66.66% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #693 +/- ## ========================================== - Coverage 57.18% 56.92% -0.27% ========================================== Files 558 568 +10 Lines 54146 54757 +611 ========================================== + Hits 30966 31173 +207 - Misses 19305 19676 +371 - Partials 3875 3908 +33 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/693/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/693/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `56.92% <57.33%> (-0.27%)` | :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.