queuesort

package
v0.0.0-...-89e5b94 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "KusciaSort"

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

Variables

This section is empty.

Functions

func New

func New(obj runtime.Object, handle framework.Handle) (framework.Plugin, error)

Types

type KusciaSort

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

func (*KusciaSort) Less

func (ks *KusciaSort) Less(podInfo1, podInfo2 *framework.QueuedPodInfo) bool

Less is used to sort pods in the scheduling queue in the following order. 1. Compare the priorities of Pods. 2. Compare the initialization timestamps of TaskResource or Pods. 3. Compare the keys of DomainID/Pods: <namespace>/<podName>.

func (*KusciaSort) Name

func (*KusciaSort) Name() string

Name returns name of the plugin.

Jump to

Keyboard shortcuts

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