eviction

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUPressureEvictionOptions added in v0.3.0

type CPUPressureEvictionOptions struct {
	LoadEvictionSyncPeriod time.Duration
}

CPUPressureEvictionOptions is the options of CPUPressureEviction

func NewCPUPressureEvictionOptions added in v0.3.0

func NewCPUPressureEvictionOptions() *CPUPressureEvictionOptions

NewCPUPressureEvictionOptions returns a new CPUPressureEvictionOptions

func (*CPUPressureEvictionOptions) AddFlags added in v0.3.0

AddFlags parses the flags to CPUPressureEvictionOptions

func (*CPUPressureEvictionOptions) ApplyTo added in v0.3.0

ApplyTo applies CPUPressureEvictionOptions to CPUPressureEvictionConfiguration

type EvictionOptions added in v0.3.0

func NewEvictionOptions added in v0.3.0

func NewEvictionOptions() *EvictionOptions

func (*EvictionOptions) AddFlags added in v0.3.0

func (o *EvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*EvictionOptions) ApplyTo added in v0.3.0

ApplyTo fills up config with options

func (*EvictionOptions) Config added in v0.3.0

type GenericEvictionOptions

type GenericEvictionOptions struct {
	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 []string
	EvictionSkippedLabelKeys      []string

	// EvictionBurst limit the burst eviction counts
	EvictionBurst int

	// PodKiller specify the pod killer implementation
	PodKiller string

	// StrictAuthentication means whether to authenticate plugins strictly
	StrictAuthentication bool

	// PodMetricLabels defines the pod labels to be added into metric selector list.
	PodMetricLabels []string
}

GenericEvictionOptions holds the configurations for eviction manager.

func NewGenericEvictionOptions

func NewGenericEvictionOptions() *GenericEvictionOptions

NewGenericEvictionOptions creates a new Options with a default config.

func (*GenericEvictionOptions) AddFlags

func (o *GenericEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*GenericEvictionOptions) ApplyTo

ApplyTo fills up config with options

func (*GenericEvictionOptions) Config

type MemoryPressureEvictionOptions added in v0.3.0

type MemoryPressureEvictionOptions struct {
	RSSOveruseEvictionFilter     string
	SystemPressureSyncPeriod     int
	SystemPressureCoolDownPeriod int
}

MemoryPressureEvictionOptions is the options of MemoryPressureEviction

func NewMemoryPressureEvictionOptions added in v0.3.0

func NewMemoryPressureEvictionOptions() *MemoryPressureEvictionOptions

NewMemoryPressureEvictionOptions returns a new MemoryPressureEvictionOptions

func (*MemoryPressureEvictionOptions) AddFlags added in v0.3.0

AddFlags parses the flags to MemoryPressureEvictionOptions

func (*MemoryPressureEvictionOptions) ApplyTo added in v0.3.0

ApplyTo applies MemoryPressureEvictionOptions to MemoryPressureEvictionConfiguration

type ReclaimedResourcesEvictionOptions added in v0.3.0

type ReclaimedResourcesEvictionOptions struct {
	SkipZeroQuantityResourceNames []string
}

func NewReclaimedResourcesEvictionOptions added in v0.3.0

func NewReclaimedResourcesEvictionOptions() *ReclaimedResourcesEvictionOptions

func (*ReclaimedResourcesEvictionOptions) AddFlags added in v0.3.0

func (*ReclaimedResourcesEvictionOptions) ApplyTo added in v0.3.0

Jump to

Keyboard shortcuts

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