Documentation
¶
Index ¶
- Constants
- func NewCPUSystemPressureEvictionPlugin(_ *client.GenericClientSet, _ events.EventRecorder, ...) plugin.EvictionPlugin
- type SystemPressureEvictionPlugin
- func (s *SystemPressureEvictionPlugin) GetEvictPods(_ context.Context, _ *v1alpha1.GetEvictPodsRequest) (*v1alpha1.GetEvictPodsResponse, error)
- func (s *SystemPressureEvictionPlugin) GetTopEvictionPods(_ context.Context, request *v1alpha1.GetTopEvictionPodsRequest) (*v1alpha1.GetTopEvictionPodsResponse, error)
- func (s *SystemPressureEvictionPlugin) Name() string
- func (s *SystemPressureEvictionPlugin) Start()
- func (s *SystemPressureEvictionPlugin) ThresholdMet(_ context.Context, _ *v1alpha1.GetThresholdMetRequest) (*v1alpha1.ThresholdMetResponse, error)
- type ThresholdBound
Constants ¶
View Source
const ( EvictionPluginNameSystemCPUPressure = "system-cpu-pressure-eviction-plugin" EvictionConditionSystemCPU = "SystemCPU" FakeLabelMetricPrefix = "label" FakeLabelMetricSeparator = "." MetricNameSystemLoadUnderPressure = "system_load_under_pressure" MetricNameSystemUsageUnderPressure = "system_usage_under_pressure" FetchMetricFailed = "fetch_metric_error" )
Variables ¶
This section is empty.
Functions ¶
func NewCPUSystemPressureEvictionPlugin ¶
func NewCPUSystemPressureEvictionPlugin( _ *client.GenericClientSet, _ events.EventRecorder, metaServer *metaserver.MetaServer, emitter metrics.MetricEmitter, conf *config.Configuration, ) plugin.EvictionPlugin
NewCPUSystemPressureEvictionPlugin returns a new SystemPressureEvictionPlugin
Types ¶
type SystemPressureEvictionPlugin ¶
type SystemPressureEvictionPlugin struct {
sync.Mutex
*process.StopControl
// contains filtered or unexported fields
}
SystemPressureEvictionPlugin is the implementation of EvictionPlugin for system cpu pressure
func (*SystemPressureEvictionPlugin) GetEvictPods ¶
func (s *SystemPressureEvictionPlugin) GetEvictPods( _ context.Context, _ *v1alpha1.GetEvictPodsRequest, ) (*v1alpha1.GetEvictPodsResponse, error)
func (*SystemPressureEvictionPlugin) GetTopEvictionPods ¶
func (s *SystemPressureEvictionPlugin) GetTopEvictionPods( _ context.Context, request *v1alpha1.GetTopEvictionPodsRequest, ) (*v1alpha1.GetTopEvictionPodsResponse, error)
func (*SystemPressureEvictionPlugin) Name ¶
func (s *SystemPressureEvictionPlugin) Name() string
Name returns the name of the plugin
func (*SystemPressureEvictionPlugin) Start ¶
func (s *SystemPressureEvictionPlugin) Start()
func (*SystemPressureEvictionPlugin) ThresholdMet ¶
func (s *SystemPressureEvictionPlugin) ThresholdMet(_ context.Context, _ *v1alpha1.GetThresholdMetRequest) (*v1alpha1.ThresholdMetResponse, error)
Click to show internal directories.
Click to hide internal directories.