Documentation ¶
Index ¶
- type CPUPressureEviction
- type CPUPressureForceEviction
- type CPUPressureLoadEviction
- func (p *CPUPressureLoadEviction) GetTopEvictionPods(_ context.Context, request *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error)
- func (p *CPUPressureLoadEviction) Name() string
- func (p *CPUPressureLoadEviction) Start(ctx context.Context) (err error)
- func (p *CPUPressureLoadEviction) ThresholdMet(_ context.Context, _ *pluginapi.Empty) (*pluginapi.ThresholdMetResponse, error)
- type CPUPressureSuppression
- type CPUPressureThresholdEviction
- type Entries
- type MetricInfo
- type MetricRing
- type MetricSnapshot
- type PoolMetricCollectHandler
- type SubEntries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUPressureEviction ¶
type CPUPressureForceEviction ¶
type CPUPressureForceEviction interface { CPUPressureEviction GetEvictPods(context.Context, *pluginapi.GetEvictPodsRequest) (*pluginapi.GetEvictPodsResponse, error) }
func NewCPUPressureSuppressionEviction ¶
func NewCPUPressureSuppressionEviction(_ metrics.MetricEmitter, _ *metaserver.MetaServer, conf *config.Configuration, state state.State) CPUPressureForceEviction
type CPUPressureLoadEviction ¶
func (*CPUPressureLoadEviction) GetTopEvictionPods ¶
func (p *CPUPressureLoadEviction) GetTopEvictionPods(_ context.Context, request *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error)
func (*CPUPressureLoadEviction) Name ¶
func (p *CPUPressureLoadEviction) Name() string
func (*CPUPressureLoadEviction) Start ¶
func (p *CPUPressureLoadEviction) Start(ctx context.Context) (err error)
func (*CPUPressureLoadEviction) ThresholdMet ¶
func (p *CPUPressureLoadEviction) ThresholdMet(_ context.Context, _ *pluginapi.Empty) (*pluginapi.ThresholdMetResponse, error)
type CPUPressureSuppression ¶
type CPUPressureSuppression struct {
// contains filtered or unexported fields
}
func (*CPUPressureSuppression) GetEvictPods ¶
func (p *CPUPressureSuppression) GetEvictPods(_ context.Context, request *pluginapi.GetEvictPodsRequest) (*pluginapi.GetEvictPodsResponse, error)
func (*CPUPressureSuppression) Name ¶
func (p *CPUPressureSuppression) Name() string
type CPUPressureThresholdEviction ¶
type CPUPressureThresholdEviction interface { CPUPressureEviction ThresholdMet(context.Context, *pluginapi.Empty) (*pluginapi.ThresholdMetResponse, error) GetTopEvictionPods(context.Context, *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error) }
func NewCPUPressureEviction ¶
func NewCPUPressureEviction(emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer, conf *config.Configuration, state state.State) CPUPressureThresholdEviction
type MetricInfo ¶
type MetricRing ¶
type MetricRing struct { MaxLen int Queue []*MetricSnapshot CurrentIndex int sync.RWMutex }
func CreateMetricRing ¶
func CreateMetricRing(size int) *MetricRing
func (*MetricRing) Count ¶
func (ring *MetricRing) Count() (softOverCount, hardOverCount int)
func (*MetricRing) Push ¶
func (ring *MetricRing) Push(snapShot *MetricSnapshot)
func (*MetricRing) Sum ¶
func (ring *MetricRing) Sum() float64
type MetricSnapshot ¶
type MetricSnapshot struct { Info MetricInfo Time int64 }
type PoolMetricCollectHandler ¶
type PoolMetricCollectHandler func(metricName string, metricValue float64, _ *state.AllocationInfo, collectTime int64)
type SubEntries ¶
type SubEntries map[string]*MetricRing
SubEntries is keyed by container name or empty string (for pool)
func (SubEntries) IsPoolEntry ¶
func (se SubEntries) IsPoolEntry() bool
Click to show internal directories.
Click to hide internal directories.