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 LoadLowerBoundRatio 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 ¶
func (o *CPUPressureEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags parses the flags to CPUPressureEvictionOptions
func (*CPUPressureEvictionOptions) ApplyTo ¶
func (o *CPUPressureEvictionOptions) ApplyTo(c *eviction.CPUPressureEvictionConfiguration) error
type EvictionOptions ¶
type EvictionOptions struct { DryRun []string *CPUPressureEvictionOptions *MemoryPressureEvictionOptions *ReclaimedResourcesEvictionOptions *SystemLoadPressureEvictionOptions *RootfsPressureEvictionOptions }
func NewEvictionOptions ¶
func NewEvictionOptions() *EvictionOptions
func (*EvictionOptions) AddFlags ¶
func (o *EvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*EvictionOptions) ApplyTo ¶
func (o *EvictionOptions) ApplyTo(c *eviction.EvictionConfiguration) error
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 ¶
func (o *MemoryPressureEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags parses the flags to MemoryPressureEvictionOptions
func (*MemoryPressureEvictionOptions) ApplyTo ¶
func (o *MemoryPressureEvictionOptions) ApplyTo(c *eviction.MemoryPressureEvictionConfiguration) error
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 (o *ReclaimedResourcesEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*ReclaimedResourcesEvictionOptions) ApplyTo ¶
func (o *ReclaimedResourcesEvictionOptions) ApplyTo(c *eviction.ReclaimedResourcesEvictionConfiguration) error
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 (o *RootfsPressureEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*RootfsPressureEvictionOptions) ApplyTo ¶ added in v0.4.1
func (o *RootfsPressureEvictionOptions) ApplyTo(c *eviction.RootfsPressureEvictionConfiguration) error
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 (s *SystemLoadPressureEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*SystemLoadPressureEvictionOptions) ApplyTo ¶ added in v0.4.0
func (s *SystemLoadPressureEvictionOptions) ApplyTo(c *eviction.SystemLoadEvictionPluginConfiguration) error
Click to show internal directories.
Click to hide internal directories.