cpunormalization

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func Object

func Object() *Plugin

func (*Plugin) AdjustContainerCFSQuota

func (p *Plugin) AdjustContainerCFSQuota(proto protocol.HooksProtocol) error

func (*Plugin) AdjustPodCFSQuota

func (p *Plugin) AdjustPodCFSQuota(proto protocol.HooksProtocol) error

func (*Plugin) Register

func (p *Plugin) Register(op hooks.Options)

type Rule

type Rule struct {
	// contains filtered or unexported fields
}

func (*Rule) GetCPUNormalizationRatio

func (r *Rule) GetCPUNormalizationRatio() float64

func (*Rule) IsEnabled

func (r *Rule) IsEnabled() bool

func (*Rule) UpdateRule

func (r *Rule) UpdateRule(ratio float64) bool

Jump to

Keyboard shortcuts

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