sort

package
v0.0.32-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeSorter

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

NodeSorter sorts nodes based on configured node labels and allocated resources.

func NewNodeSorter

func NewNodeSorter(
	driverPrioritizedNodeLabel *config.LabelPriorityOrder,
	executorPrioritizedNodeLabel *config.LabelPriorityOrder) *NodeSorter

NewNodeSorter creates a new NodeSorter instance.

func (*NodeSorter) PotentialNodes

func (n *NodeSorter) PotentialNodes(availableNodesSchedulingMetadata resources.NodeGroupSchedulingMetadata, nodeNames []string) (driverNodes, executorNodes []string)

PotentialNodes returns driver and executor nodes in priority order based on scheduling metadata and a list of candidate nodes for the driver.

Jump to

Keyboard shortcuts

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