Skip to content

Commit

Permalink
add MaxNodeUtilizationPercent to ReclaimedResourceConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
WangZzzhe committed Jul 18, 2024
1 parent 77c1caf commit f7732f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
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.

0 comments on commit f7732f5

Please sign in to comment.