Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NominatedNodeAnnotationKey is used to annotate a pod that has preempted other pods. // The scheduler uses the annotation to find that the pod shouldn't preempt more pods // when it gets to the head of scheduling queue again. // See podEligibleToPreemptOthers() for more information. NominatedNodeAnnotationKey = "NominatedNodeName" )
Variables ¶
This section is empty.
Functions ¶
func CreateNodeNameToInfoMap ¶
func CreateNodeNameToInfoMap(pods []*apiv1.Pod, nodes []*apiv1.Node) map[string]*schedulercache.NodeInfo
CreateNodeNameToInfoMap obtains a list of pods and pivots that list into a map where the keys are node names and the values are the aggregated information for that node. Pods waiting lower priority pods preemption (annotated with NominatedNodeAnnotationKey) are also added to list of pods for a node.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.