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(spd): support ihpa #630

Open kapybar4 opened 2 weeks ago

kapybar4 commented 2 weeks ago

What type of PR is this?

Features

What this PR does / why we need it:

Intelligent HPA is used to provide richer and more powerful HPA capabilities. The current core capability is to achieve intelligent elastic scaling of workloads based on workload prediction data generated by resource portraits. IHPA is mainly composed of Controller and Metrics Adapter. Controller tuning mainly involves 4 resource objects:

Special notes for your reviewer:

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 52.84281% with 282 lines in your changes missing coverage. Please review.

Project coverage is 56.77%. Comparing base (7e559fd) to head (9910121). Report is 10 commits behind head on main.

Files Patch % Lines
pkg/controller/ihpa/ihpa.go 20.30% 209 Missing and 3 partials :warning:
pkg/controller/ihpa/util.go 86.45% 16 Missing and 10 partials :warning:
...ugin/plugins/resource-portrait/indicator_plugin.go 17.64% 14 Missing :warning:
pkg/custom-metric/store/custom/spd_metric_store.go 72.34% 7 Missing and 6 partials :warning:
pkg/client/control/ihpa.go 81.13% 5 Missing and 5 partials :warning:
cmd/katalyst-controller/app/options/ihpa.go 50.00% 6 Missing :warning:
cmd/katalyst-controller/app/options/controller.go 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #630 +/- ## ========================================== - Coverage 56.89% 56.77% -0.13% ========================================== Files 544 549 +5 Lines 51682 52385 +703 ========================================== + Hits 29407 29739 +332 - Misses 18570 18900 +330 - Partials 3705 3746 +41 ``` | [Flag](https://app.codecov.io/gh/kubewharf/katalyst-core/pull/630/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/630/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewharf) | `56.77% <52.84%> (-0.13%)` | :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.