Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add headroom policy and assembler for dedicated #124

Conversation

sun-yuliang
Copy link
Collaborator

What type of PR is this?

Enhancements

What this PR does / why we need it:

Add a headroom policy based on load and headroom assembler for scene with dedicated containers.

Which issue(s) this PR fixes:

Special notes for your reviewer:

@sun-yuliang sun-yuliang added enhancement New feature or request workflow/draft draft: no need to review labels Jun 28, 2023
@sun-yuliang sun-yuliang self-assigned this Jun 28, 2023
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 51.87% and project coverage change: -0.45 ⚠️

Comparison is base (21d86d9) 51.30% compared to head (6ccf5fe) 50.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
- Coverage   51.30%   50.85%   -0.45%     
==========================================
  Files         318      387      +69     
  Lines       32418    36999    +4581     
==========================================
+ Hits        16632    18817    +2185     
- Misses      13840    16056    +2216     
- Partials     1946     2126     +180     
Flag Coverage Δ
unittest 50.85% <51.87%> (-0.45%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/base/context_fake.go 65.94% <ø> (-4.35%) ⬇️
cmd/katalyst-agent/app/agent/eviction.go 0.00% <0.00%> (ø)
pkg/agent/evictionmanager/endpoint/endpoint.go 0.00% <ø> (ø)
pkg/agent/qrm-plugins/advisorsvc/advisor_svc.pb.go 10.34% <ø> (ø)
...ins/cpu/dynamicpolicy/calculator/cpu_assignment.go 77.01% <ø> (ø)
...gins/cpu/dynamicpolicy/cpueviction/cpu_eviciton.go 0.00% <0.00%> (-63.25%) ⬇️
pkg/agent/qrm-plugins/cpu/dynamicpolicy/policy.go 43.49% <ø> (+5.15%) ⬆️
...nt/qrm-plugins/memory/dynamicpolicy/state/state.go 63.63% <ø> (-2.31%) ⬇️
...ins/memory/dynamicpolicy/state/state_checkpoint.go 48.05% <ø> (ø)
...rm-plugins/memory/dynamicpolicy/state/state_mem.go 74.76% <ø> (+0.79%) ⬆️
... and 199 more

... and 35 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sun-yuliang sun-yuliang changed the title WIP: add headroom policy and assembler for dedicated add headroom policy and assembler for dedicated Jun 28, 2023
@sun-yuliang sun-yuliang added workflow/need-review review: test succeeded, need to review and removed workflow/draft draft: no need to review labels Jun 28, 2023
@sun-yuliang sun-yuliang force-pushed the syl/add-headroom-policy-and-assembler-for-dedicated branch 2 times, most recently from 6536051 to 63e3f24 Compare June 29, 2023 09:13
)

type HeadroomAssembler interface {
GetHeadroom() (resource.Quantity, error)
}

type InitFunc func(conf *config.Configuration, extraConf interface{}, regionMap *map[string]region.QoSRegion,
reservedForReclaim *map[int]int, numaAvailable *map[int]int, nonBindingNumas *machine.CPUSet,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why should we use map pointer here? does it mean that we will depend on this pointer to get the latest version for the map (which is not proper actually)? why not put those info in metacache?

cheney-lin
cheney-lin previously approved these changes Jun 29, 2023
@sun-yuliang sun-yuliang force-pushed the syl/add-headroom-policy-and-assembler-for-dedicated branch from 68a739f to 6ccf5fe Compare June 29, 2023 14:37
@sun-yuliang sun-yuliang added the workflow/merge-ready merge-ready: code is ready and can be merged label Jul 3, 2023
@sun-yuliang sun-yuliang requested a review from cheney-lin July 3, 2023 03:19
@waynepeking348 waynepeking348 merged commit 3e01845 into kubewharf:main Jul 3, 2023
luomingmeng pushed a commit to luomingmeng/katalyst-core that referenced this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workflow/merge-ready merge-ready: code is ready and can be merged workflow/need-review review: test succeeded, need to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants