eviction

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUPressureEvictionOptions

type CPUPressureEvictionOptions struct {
	EnableLoadEviction              bool
	LoadUpperBoundRatio             float64
	LoadThresholdMetPercentage      float64
	LoadMetricRingSize              int
	LoadEvictionCoolDownTime        time.Duration
	EnableSuppressionEviction       bool
	MaxSuppressionToleranceRate     float64
	MinSuppressionToleranceDuration time.Duration
	GracePeriod                     int64
}

CPUPressureEvictionOptions is the options of cpu pressure eviction

func NewCPUPressureEvictionOptions

func NewCPUPressureEvictionOptions() *CPUPressureEvictionOptions

NewCPUPressureEvictionOptions returns a new CPUPressureEvictionOptions

func (*CPUPressureEvictionOptions) AddFlags

AddFlags parses the flags to CPUPressureEvictionOptions

func (*CPUPressureEvictionOptions) ApplyTo

type MemoryPressureEvictionOptions

type MemoryPressureEvictionOptions struct {
	EnableNumaLevelEviction                 bool
	EnableSystemLevelEviction               bool
	NumaVictimMinimumUtilizationThreshold   float64
	NumaFreeBelowWatermarkTimesThreshold    int
	SystemFreeMemoryThresholdMinimum        string
	SystemKswapdRateThreshold               int
	SystemKswapdRateExceedDurationThreshold int
	NumaEvictionRankingMetrics              []string
	SystemEvictionRankingMetrics            []string
	GracePeriod                             int64
	EnableRSSOveruseEviction                bool
	RSSOveruseRateThreshold                 float64
}

MemoryPressureEvictionOptions is the options of MemoryPressureEviction

func NewMemoryPressureEvictionOptions

func NewMemoryPressureEvictionOptions() *MemoryPressureEvictionOptions

NewMemoryPressureEvictionOptions returns a new MemoryPressureEvictionOptions

func (*MemoryPressureEvictionOptions) AddFlags

AddFlags parses the flags to MemoryPressureEvictionOptions

func (*MemoryPressureEvictionOptions) ApplyTo

ApplyTo applies MemoryPressureEvictionOptions to MemoryPressureEvictionConfiguration

type ReclaimedResourcesEvictionOptions

type ReclaimedResourcesEvictionOptions struct {
	EvictionThreshold             native.ResourceThreshold
	GracePeriod                   int64
	ThresholdMetToleranceDuration int64
}

func NewReclaimedResourcesEvictionOptions

func NewReclaimedResourcesEvictionOptions() *ReclaimedResourcesEvictionOptions

func (*ReclaimedResourcesEvictionOptions) AddFlags

func (*ReclaimedResourcesEvictionOptions) ApplyTo

type RootfsPressureEvictionOptions added in v0.4.1

type RootfsPressureEvictionOptions struct {
	EnableRootfsPressureEviction               bool
	MinimumImageFsFreeThreshold                string
	MinimumImageFsInodesFreeThreshold          string
	PodMinimumUsedThreshold                    string
	PodMinimumInodesUsedThreshold              string
	ReclaimedQoSPodUsedPriorityThreshold       string
	ReclaimedQoSPodInodesUsedPriorityThreshold string
	MinimumImageFsDiskCapacityThreshold        string
	GracePeriod                                int64
}

func NewRootfsPressureEvictionOptions added in v0.4.1

func NewRootfsPressureEvictionOptions() *RootfsPressureEvictionOptions

func (*RootfsPressureEvictionOptions) AddFlags added in v0.4.1

func (*RootfsPressureEvictionOptions) ApplyTo added in v0.4.1

type SystemLoadPressureEvictionOptions added in v0.4.0

type SystemLoadPressureEvictionOptions struct {
	SoftThreshold          int64
	HardThreshold          int64
	HistorySize            int64
	SyncPeriod             int64
	CoolDownTime           int64
	GracePeriod            int64
	ThresholdMetPercentage float64
}

func NewSystemLoadPressureEvictionOptions added in v0.4.0

func NewSystemLoadPressureEvictionOptions() *SystemLoadPressureEvictionOptions

func (*SystemLoadPressureEvictionOptions) AddFlags added in v0.4.0

func (*SystemLoadPressureEvictionOptions) ApplyTo added in v0.4.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL