eviction

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUPressureEvictionConfiguration added in v0.3.0

type CPUPressureEvictionConfiguration struct {
	LoadEvictionSyncPeriod time.Duration
}

CPUPressureEvictionConfiguration is the config of CPUPressureEviction

func NewCPUPressureEvictionConfiguration added in v0.3.0

func NewCPUPressureEvictionConfiguration() *CPUPressureEvictionConfiguration

NewCPUPressureEvictionConfiguration returns a new CPUPressureEvictionConfiguration

type EvictionConfiguration added in v0.3.0

func NewEvictionConfiguration added in v0.3.0

func NewEvictionConfiguration() *EvictionConfiguration

type GenericEvictionConfiguration

type GenericEvictionConfiguration struct {
	// Inner plugins is the list of plugins implemented in katalyst to enable or disable
	// '*' means "all enabled by default"
	// 'foo' means "enable 'foo'"
	// '-foo' means "disable 'foo'"
	// first item for a particular name wins
	InnerPlugins []string

	// ConditionTransitionPeriod is duration the eviction manager has to wait before transitioning out of a condition.
	ConditionTransitionPeriod time.Duration

	// EvictionManagerSyncPeriod is the interval duration that eviction manager fetches information from registered plugins
	EvictionManagerSyncPeriod time.Duration

	// those two variables are used to filter out eviction-free pods
	EvictionSkippedAnnotationKeys sets.String
	EvictionSkippedLabelKeys      sets.String

	// EvictionBurst limit the burst eviction counts
	EvictionBurst int
}

func NewGenericEvictionConfiguration

func NewGenericEvictionConfiguration() *GenericEvictionConfiguration

type MemoryPressureEvictionConfiguration added in v0.3.0

type MemoryPressureEvictionConfiguration struct {
	RSSOveruseEvictionFilter     labels.Set
	SystemPressureSyncPeriod     int
	SystemPressureCoolDownPeriod int
}

MemoryPressureEvictionConfiguration is the config of MemoryPressureEviction

func NewMemoryPressureEvictionPluginConfiguration

func NewMemoryPressureEvictionPluginConfiguration() *MemoryPressureEvictionConfiguration

NewMemoryPressureEvictionPluginConfiguration returns a new MemoryPressureEvictionConfiguration

type ReclaimedResourcesEvictionConfiguration added in v0.3.0

type ReclaimedResourcesEvictionConfiguration struct {
	SkipZeroQuantityResourceNames sets.String
}

func NewReclaimedResourcesEvictionConfiguration added in v0.3.0

func NewReclaimedResourcesEvictionConfiguration() *ReclaimedResourcesEvictionConfiguration

Jump to

Keyboard shortcuts

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