policies

package
v1.4.0-1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreemptionPolicy added in v1.2.0

type PreemptionPolicy int
const (
	DefaultPreemptionPolicy  PreemptionPolicy = iota // preemption is allowed globally
	FencePreemptionPolicy                            // preemption is allowed only within queue subtree
	DisabledPreemptionPolicy                         // preemption is disabled
)

func PreemptionPolicyFromString added in v1.2.0

func PreemptionPolicyFromString(str string) (PreemptionPolicy, error)

func (PreemptionPolicy) String added in v1.2.0

func (p PreemptionPolicy) String() string

type PriorityPolicy added in v1.2.0

type PriorityPolicy int
const (
	DefaultPriorityPolicy PriorityPolicy = iota // priority propagates upward
	FencePriorityPolicy                         // priority is not considered outside queue subtree
)

func PriorityPolicyFromString added in v1.2.0

func PriorityPolicyFromString(str string) (PriorityPolicy, error)

func (PriorityPolicy) String added in v1.2.0

func (p PriorityPolicy) String() string

type SortPolicy

type SortPolicy int

Sort type for queues & apps.

const (
	FifoSortPolicy   SortPolicy = iota // first in first out, submit time
	FairSortPolicy                     // fair based on usage
	StateAwarePolicy                   // only 1 app in starting state
	Undefined                          // not initialised or parsing failed
)

func SortPolicyFromString

func SortPolicyFromString(str string) (SortPolicy, error)

func (SortPolicy) String

func (s SortPolicy) String() string

type SortingPolicy

type SortingPolicy int
const (
	BinPackingPolicy SortingPolicy = iota
	FairnessPolicy
)

func SortingPolicyFromString

func SortingPolicyFromString(str string) (SortingPolicy, error)

func (SortingPolicy) String

func (nsp SortingPolicy) String() string

Jump to

Keyboard shortcuts

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