Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeCapacity ¶
GetNodeCapacity returns how many singleExecutor can fit within available - reserved
Types ¶
type NodeAndExecutorCapacity ¶
NodeAndExecutorCapacity is a pair of node name and capacity (how many executors can it fit)
func FilterOutNodesWithoutCapacity ¶
func FilterOutNodesWithoutCapacity(capacities []NodeAndExecutorCapacity) []NodeAndExecutorCapacity
FilterOutNodesWithoutCapacity returns a slice of nodes with non-zero capacity
func GetNodeCapacities ¶
func GetNodeCapacities( nodePriorityOrder []string, nodeGroupSchedulingMetadata resources.NodeGroupSchedulingMetadata, reservedResources resources.NodeGroupResources, singleExecutor *resources.Resources, ) []NodeAndExecutorCapacity
GetNodeCapacities return value is ordered according to nodePriorityOrder
Click to show internal directories.
Click to hide internal directories.