plugins

package
v0.0.0-...-1a2b023 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationPrefix = "caih.com/scheduler_"
View Source
const Name = "caihcloud-real-node-load-plugin"

插件名称

Variables

This section is empty.

Functions

func New

func New(configuration *runtime.Unknown, f framework.FrameworkHandle) (framework.Plugin, error)

Types

type MetricsInfo

type MetricsInfo struct {
	Timestamp int64
	Interval  int64
	Value     float64
	Threshold float64
	Weight    float64
}

type RealNodeLoad

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

func (*RealNodeLoad) Bind

func (rnl *RealNodeLoad) Bind(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) *framework.Status

Bind skip this plugin because system scheduler has default bind plugin

func (*RealNodeLoad) Filter

func (rnl *RealNodeLoad) Filter(ctx context.Context, pc *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

func (*RealNodeLoad) Name

func (rnl *RealNodeLoad) Name() string

func (*RealNodeLoad) NormalizeScore

func (rnl *RealNodeLoad) NormalizeScore(ctx context.Context, state *framework.CycleState, p *v1.Pod, scores framework.NodeScoreList) *framework.Status

func (*RealNodeLoad) PreBind

func (rnl *RealNodeLoad) PreBind(ctx context.Context, pc *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status

func (*RealNodeLoad) PreFilter

func (rnl *RealNodeLoad) PreFilter(ctx context.Context, pc *framework.CycleState, pod *v1.Pod) *framework.Status

func (*RealNodeLoad) PreFilterExtensions

func (rnl *RealNodeLoad) PreFilterExtensions() framework.PreFilterExtensions

func (*RealNodeLoad) Score

func (rnl *RealNodeLoad) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)

func (*RealNodeLoad) ScoreExtensions

func (rnl *RealNodeLoad) ScoreExtensions() framework.ScoreExtensions

Jump to

Keyboard shortcuts

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