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 MaxNodeUtilizationPercent to ReclaimedResourceConfig #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,15 @@ spec:
colocation between reclaimed_cores pod and other pods, otherwise,
reclaim resource will be disabled.
type: boolean
maxNodeUtilizationPercent:
additionalProperties:
format: int64
type: integer
description: MaxNodeUtilizationPercent is the node resource
utilization limit for reclaimed resource. node resources
above the utilization will not be allocated to reclaimed
pool.
type: object
memoryHeadroomConfig:
description: MemoryHeadroomConfig is a configuration for memory
headroom
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/config/v1alpha1/adminqos.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ type ReclaimedResourceConfig struct {
// +optional
MinReclaimedResourceForAllocate *v1.ResourceList `json:"minReclaimedResourceForAllocate,omitempty"`

// MaxNodeUtilizationPercent is the node resource utilization limit for reclaimed resource.
// node resources above the utilization will not be allocated to reclaimed pool.
// +optional
MaxNodeUtilizationPercent map[v1.ResourceName]int64 `json:"maxNodeUtilizationPercent,omitempty"`

// CPUHeadroomConfig is a configuration for cpu headroom
// +optional
CPUHeadroomConfig *CPUHeadroomConfig `json:"cpuHeadroomConfig,omitempty"`
Expand Down
7 changes: 7 additions & 0 deletions pkg/apis/config/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading