Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "PrioritySort"
Name is the name of the plugin used in the plugin registry and configurations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrioritySort ¶
type PrioritySort struct{}
PrioritySort is a plugin that implements Priority based sorting.
func (*PrioritySort) Less ¶
func (pl *PrioritySort) Less(pInfo1, pInfo2 *framework.QueuedPodInfo) bool
Less is the function used by the activeQ heap algorithm to sort pods. It sorts pods based on their priority. When priorities are equal, it uses PodQueueInfo.timestamp.