kubernetes: k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort Index | Files

package queuesort

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort"


Package Files



const Name = "PrioritySort"

Name is the name of the plugin used in the plugin registry and configurations.

func New Uses

func New(_ runtime.Object, handle framework.FrameworkHandle) (framework.Plugin, error)

New initializes a new plugin and returns it.

type PrioritySort Uses

type PrioritySort struct{}

PrioritySort is a plugin that implements Priority based sorting.

func (*PrioritySort) Less Uses

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.

func (*PrioritySort) Name Uses

func (pl *PrioritySort) Name() string

Name returns name of the plugin.

Package queuesort imports 3 packages (graph) and is imported by 43 packages. Updated 2020-05-13. Refresh now. Tools for package owners.