resourceamplification

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "ResourceAmplification"
View Source
const (
	ReasonResourceAmplificationConfigUnmarshalFailed = "ResourceAmplificationCfgUnmarshalFailed"
)

Variables

This section is empty.

Functions

func DefaultResourceAmplificationCfg added in v1.6.0

func DefaultResourceAmplificationCfg() *configuration.ResourceAmplificationCfg

Types

type Plugin

type Plugin struct{}

Plugin calculates and updates final node resource amplification ratios automatically based on user config and node cpu normalization ratio.

func (*Plugin) Calculate

Calculate calculates resource amplification ratio, resource final ratio should >= 1 cpuAmplificationRatio = amplificationStrategy.resourceAmplificationRatio["cpu"] * CPUNormalizationRatio otherResourceAmplificationRatio = amplificationStrategy.resourceAmplificationRatio["other-resource"]

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) NeedSyncMeta

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

func (*Plugin) Prepare

func (*Plugin) Reset

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

func (*Plugin) Setup added in v1.6.0

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

+kubebuilder:rbac:groups=core,resources=nodes,verbs=get;list;watch

Jump to

Keyboard shortcuts

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