nodeorder

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// PluginName indicates name of volcano scheduler plugin.
	PluginName = "nodeorder"

	// NodeAffinityWeight is the key for providing Node Affinity Priority Weight in YAML
	NodeAffinityWeight = "nodeaffinity.weight"
	// PodAffinityWeight is the key for providing Pod Affinity Priority Weight in YAML
	PodAffinityWeight = "podaffinity.weight"
	// LeastRequestedWeight is the key for providing Least Requested Priority Weight in YAML
	LeastRequestedWeight = "leastrequested.weight"
	// BalancedResourceWeight is the key for providing Balanced Resource Priority Weight in YAML
	BalancedResourceWeight = "balancedresource.weight"
	// MostRequestedWeight is the key for providing Most Requested Priority Weight in YAML
	MostRequestedWeight = "mostrequested.weight"
	// TaintTolerationWeight is the key for providing Taint Toleration Priority Weight in YAML
	TaintTolerationWeight = "tainttoleration.weight"
	// ImageLocalityWeight is the key for providing Image Locality Priority Weight in YAML
	ImageLocalityWeight = "imagelocality.weight"
	// PodTopologySpreadWeight is the key for providing Pod Topology Spread Priority Weight in YAML
	PodTopologySpreadWeight = "podtopologyspread.weight"
)

Variables

This section is empty.

Functions

func New

func New(arguments framework.Arguments) framework.Plugin

New function returns nodeorder plugin object.

Types

type NodeOrderPlugin added in v1.14.0

type NodeOrderPlugin struct {
	Handle                fwk.Handle
	ScorePlugins          map[string]nodescore.BaseScorePlugin
	NodeOrderScorePlugins map[string]ScorePluginWithWeight
	// contains filtered or unexported fields
}

func (*NodeOrderPlugin) BatchNodeOrderFn added in v1.14.0

func (pp *NodeOrderPlugin) BatchNodeOrderFn(task *api.TaskInfo, nodeInfo []*api.NodeInfo, state *k8sframework.CycleState) (map[string]float64, error)

func (*NodeOrderPlugin) InitPlugin added in v1.14.0

func (pp *NodeOrderPlugin) InitPlugin()

func (*NodeOrderPlugin) Name added in v1.14.0

func (pp *NodeOrderPlugin) Name() string

func (*NodeOrderPlugin) NodeOrderFn added in v1.14.0

func (pp *NodeOrderPlugin) NodeOrderFn(task *api.TaskInfo, node *api.NodeInfo, k8sNodeInfo fwk.NodeInfo, state *k8sframework.CycleState) (float64, error)

func (*NodeOrderPlugin) OnSessionClose added in v1.14.0

func (pp *NodeOrderPlugin) OnSessionClose(ssn *framework.Session)

func (*NodeOrderPlugin) OnSessionOpen added in v1.14.0

func (pp *NodeOrderPlugin) OnSessionOpen(ssn *framework.Session)

type ScorePluginWithWeight added in v1.14.0

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

Jump to

Keyboard shortcuts

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