fairness

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DominantResourceFairness

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

func (*DominantResourceFairness) UnweightedCostFromAllocation added in v0.8.6

func (f *DominantResourceFairness) UnweightedCostFromAllocation(allocation schedulerobjects.ResourceList) float64

func (*DominantResourceFairness) UnweightedCostFromQueue added in v0.8.6

func (f *DominantResourceFairness) UnweightedCostFromQueue(queue Queue) float64

func (*DominantResourceFairness) WeightedCostFromAllocation added in v0.8.6

func (f *DominantResourceFairness) WeightedCostFromAllocation(allocation schedulerobjects.ResourceList, weight float64) float64

func (*DominantResourceFairness) WeightedCostFromQueue added in v0.8.6

func (f *DominantResourceFairness) WeightedCostFromQueue(queue Queue) float64

type FairnessCostProvider

type FairnessCostProvider interface {
	UnweightedCostFromQueue(queue Queue) float64
	UnweightedCostFromAllocation(allocation schedulerobjects.ResourceList) float64
	WeightedCostFromQueue(queue Queue) float64
	WeightedCostFromAllocation(allocation schedulerobjects.ResourceList, weight float64) float64
}

FairnessCostProvider captures algorithms to compute the cost of an allocation.

type Queue

type Queue interface {
	// GetAllocation returns the current allocation of the queue.
	GetAllocation() schedulerobjects.ResourceList
	GetWeight() float64
}

Queue is a minimal representation of a queue used for computing fairness.

type QueueRepository

type QueueRepository interface {
	GetQueue(name string) (Queue, bool)
}

QueueRepository is a minimal representation of a queue repository used for computing fairness.

Jump to

Keyboard shortcuts

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