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: allocate dedicated without exclusive and reclaim on a numa node #618

Open WangZzzhe opened 3 weeks ago

WangZzzhe commented 3 weeks ago

What type of PR is this?

Enhancements

What this PR does / why we need it:

support allocate dedicated without exclusive and reclaim on a numa node

  1. cpu advisor estimate dedicated pod with numaBinding without exclusive by pod requests. And allocate cpus which are not bind to dedicated pods to reclaim pool
  2. cpu server always generate new blocks for dedicated pod with numaBinding without exclusive
  3. cpu dynamic plugin reuse cpus for dedicated pods without exclusive to make sure these pods always bind with static cpus.
codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 82.17054% with 23 lines in your changes missing coverage. Please review.

Project coverage is 56.33%. Comparing base (5e1814b) to head (8f4600f). Report is 10 commits behind head on main.

Files Patch % Lines
...sor/plugin/qosaware/resource/cpu/advisor_helper.go 59.09% 6 Missing and 3 partials :warning:
...lugins/cpu/dynamicpolicy/policy_advisor_handler.go 66.66% 5 Missing and 3 partials :warning:
...urce/cpu/region/region_dedicated_numa_exclusive.go 82.75% 3 Missing and 2 partials :warning:
...nt/sysadvisor/plugin/qosaware/server/cpu_server.go 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #618 +/- ## ========================================== + Coverage 56.14% 56.33% +0.19% ========================================== Files 535 543 +8 Lines 49865 50473 +608 ========================================== + Hits 27997 28436 +439 - Misses 18307 18452 +145 - Partials 3561 3585 +24 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/618/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/618/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `56.33% <82.17%> (+0.19%)` | :arrow_up: | 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.