cpunormalization

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "CPUNormalization"
View Source
const (
	ReasonCPUNormalizationConfigUnmarshalFailed = "CPUNormalizationCfgUnmarshalFailed"
)

Variables

This section is empty.

Functions

func DefaultCPUNormalizationCfg

func DefaultCPUNormalizationCfg() *configuration.CPUNormalizationCfg

Types

type Plugin

type Plugin struct{}

func (*Plugin) Calculate

Calculate retrieves the CPUNormalizationStrategy from ConfigMap and the CPUBasicInfo from the NRT, get the cpu normalization ratio annotation

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) NeedSyncMeta

func (p *Plugin) NeedSyncMeta(_ *configuration.ColocationStrategy, oldNode, newNode *corev1.Node) (bool, string)

NeedSyncMeta checks if the node annotation of cpu normalization ratio to update is different from the current

func (*Plugin) Prepare

func (*Plugin) Reset

func (p *Plugin) Reset(node *corev1.Node, message string) []framework.ResourceItem

func (*Plugin) Setup

func (p *Plugin) Setup(opt *framework.Option) error

Jump to

Keyboard shortcuts

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