Skip to content

feat(advisor): support numa reclaim reserve#964

Merged
xu282934741 merged 1 commit intokubewharf:mainfrom
lihonghao314:dev/be-reserve
Nov 12, 2025
Merged

feat(advisor): support numa reclaim reserve#964
xu282934741 merged 1 commit intokubewharf:mainfrom
lihonghao314:dev/be-reserve

Conversation

@lihonghao314
Copy link
Copy Markdown
Collaborator

@lihonghao314 lihonghao314 commented Sep 5, 2025

What type of PR is this?

Features

What this PR does / why we need it:

Previously, offline reserved resources configured fixedly at the node level may lead to excessive or insufficient reserved resources at the NUMA level. Therefore, configuring reserved resources at the NUMA dimension is supported, and proportional configuration based on NUMA size is adopted instead of fixed values.

@lihonghao314 lihonghao314 force-pushed the dev/be-reserve branch 8 times, most recently from 4430ba2 to 3965514 Compare September 8, 2025 13:35
@lihonghao314 lihonghao314 force-pushed the dev/be-reserve branch 3 times, most recently from 8f9e69d to 8f543cc Compare November 4, 2025 04:33
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 4, 2025

Codecov Report

❌ Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.77%. Comparing base (d77bd6f) to head (f82de4e).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
...minqos/reclaimedresource/reclaimedresource_base.go 71.42% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #964   +/-   ##
=======================================
  Coverage   59.76%   59.77%           
=======================================
  Files         682      683    +1     
  Lines       64020    64088   +68     
=======================================
+ Hits        38264    38309   +45     
- Misses      21357    21376   +19     
- Partials     4399     4403    +4     
Flag Coverage Δ
unittest 59.77% <86.20%> (+<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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

MinIgnoredReclaimedResourceForReport general.ResourceList
ReservedResourceForAllocate general.ResourceList
ReservedResourceForReclaimedCores general.ResourceList
NumaReclaimedResourceRatioForAllocate general.ResourceList
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could add "Min" in this option name? to keep the same as katalyst-api

"reserved reclaimed resource actually not allocate to reclaimed resource")
fs.Var(&o.ReservedResourceForReclaimedCores, "reserved-resource-for-reclaimed-cores",
"reserved resources for reclaimed_cores pods")
fs.Var(&o.NumaReclaimedResourceRatioForAllocate, "numa-reserved-resource-ratio-for-reclaimed-cores",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two flag shouldn't have same desc

@lihonghao314 lihonghao314 force-pushed the dev/be-reserve branch 7 times, most recently from f717197 to de9d9c4 Compare November 11, 2025 08:07
Comment thread pkg/consts/strategy_names.go Outdated
// StrategyNameMetricThreshold is the name of metric threshold,
// it offers metric threshold from trombe
StrategyNameMetricThreshold = "metric_threshold"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete it

Comment thread go.mod Outdated
)

replace (
github.com/kubewharf/katalyst-api => github.com/lihonghao314/katalyst-api v0.0.0-20251111070221-3f8cdb7025c9
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete it

@xu282934741 xu282934741 merged commit 5bb737c into kubewharf:main Nov 12, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants