nodeutilization

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// MinResourcePercentage is the minimum value of a resource's percentage
	MinResourcePercentage = 0
	// MaxResourcePercentage is the maximum value of a resource's percentage
	MaxResourcePercentage = 100
)
View Source
const HighNodeUtilizationPluginName = "HighNodeUtilization"
View Source
const LowNodeUtilizationPluginName = "LowNodeUtilization"

Variables

This section is empty.

Functions

func NewHighNodeUtilization

func NewHighNodeUtilization(args runtime.Object, handle framework.Handle) (framework.Plugin, error)

NewHighNodeUtilization builds plugin from its arguments while passing a handle

func NewLowNodeUtilization

func NewLowNodeUtilization(args runtime.Object, handle framework.Handle) (framework.Plugin, error)

NewLowNodeUtilization builds plugin from its arguments while passing a handle

Types

type HighNodeUtilization

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

func (*HighNodeUtilization) Balance

func (h *HighNodeUtilization) Balance(ctx context.Context, nodes []*v1.Node) *framework.Status

Balance extension point implementation for the plugin

func (*HighNodeUtilization) Name

func (h *HighNodeUtilization) Name() string

Name retrieves the plugin name

type LowNodeUtilization

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

func (*LowNodeUtilization) Balance

func (l *LowNodeUtilization) Balance(ctx context.Context, nodes []*v1.Node) *framework.Status

Balance extension point implementation for the plugin

func (*LowNodeUtilization) Name

func (l *LowNodeUtilization) Name() string

Name retrieves the plugin name

type NodeInfo

type NodeInfo struct {
	NodeUsage
	// contains filtered or unexported fields
}

type NodePodsMap

type NodePodsMap map[*v1.Node][]*v1.Pod

NodePodsMap is a set of (node, pods) pairs

type NodeThresholds

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

type NodeUsage

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

NodeUsage stores a node's info, pods on it, thresholds and its resource usage

Jump to

Keyboard shortcuts

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