Skip to content

Commit

Permalink
Merge pull request #21 from zzzzhhb/duration_threshold
Browse files Browse the repository at this point in the history
feat(eviction): system pressure eviction use duration instead of time…
  • Loading branch information
waynepeking348 authored Jul 7, 2023
2 parents 25ce232 + 27dfa74 commit d770773
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ spec:
type: string
minItems: 1
type: array
systemKswapdRateExceedTimesThreshold:
description: SystemKswapdRateExceedTimesThreshold is the
threshold for the number of times the kswapd reclaiming
systemKswapdRateExceedDurationThreshold:
description: SystemKswapdRateExceedDurationThreshold is
the threshold for the duration the kswapd reclaiming
rate exceeds the threshold
type: integer
systemKswapdRateThreshold:
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/config/v1alpha1/adminqos.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ type MemoryPressureEvictionConfig struct {
// +optional
SystemKswapdRateThreshold *int `json:"systemKswapdRateThreshold,omitempty"`

// SystemKswapdRateExceedTimesThreshold is the threshold for the number of
// times the kswapd reclaiming rate exceeds the threshold
// SystemKswapdRateExceedDurationThreshold is the threshold for the duration the kswapd reclaiming rate
// exceeds the threshold
// +kubectl:validation:Minimum=0
// +optional
SystemKswapdRateExceedTimesThreshold *int `json:"systemKswapdRateExceedTimesThreshold,omitempty"`
SystemKswapdRateExceedDurationThreshold *int `json:"systemKswapdRateExceedDurationThreshold,omitempty"`

// NumaEvictionRankingMetrics is the metrics used to rank pods for eviction
// at the NUMA level
Expand Down
4 changes: 2 additions & 2 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 d770773

Please sign in to comment.