Documentation ¶
Index ¶
- type DominantResourceFairness
- func (f *DominantResourceFairness) UnweightedCostFromAllocation(allocation internaltypes.ResourceList) float64
- func (f *DominantResourceFairness) UnweightedCostFromQueue(queue Queue) float64
- func (f *DominantResourceFairness) WeightedCostFromAllocation(allocation internaltypes.ResourceList, weight float64) float64
- func (f *DominantResourceFairness) WeightedCostFromQueue(queue Queue) float64
- type FairnessCostProvider
- type Queue
- type QueueRepository
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 NewDominantResourceFairness ¶
func NewDominantResourceFairness(totalResources internaltypes.ResourceList, config configuration.SchedulingConfig) (*DominantResourceFairness, error)
func (*DominantResourceFairness) UnweightedCostFromAllocation ¶
func (f *DominantResourceFairness) UnweightedCostFromAllocation(allocation internaltypes.ResourceList) float64
func (*DominantResourceFairness) UnweightedCostFromQueue ¶
func (f *DominantResourceFairness) UnweightedCostFromQueue(queue Queue) float64
func (*DominantResourceFairness) WeightedCostFromAllocation ¶
func (f *DominantResourceFairness) WeightedCostFromAllocation(allocation internaltypes.ResourceList, weight float64) float64
func (*DominantResourceFairness) WeightedCostFromQueue ¶
func (f *DominantResourceFairness) WeightedCostFromQueue(queue Queue) float64
type FairnessCostProvider ¶
type FairnessCostProvider interface { UnweightedCostFromQueue(queue Queue) float64 UnweightedCostFromAllocation(allocation internaltypes.ResourceList) float64 WeightedCostFromQueue(queue Queue) float64 WeightedCostFromAllocation(allocation internaltypes.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() internaltypes.ResourceList GetWeight() float64 }
Queue is a minimal representation of a queue used for computing fairness.
type QueueRepository ¶
QueueRepository is a minimal representation of a queue repository used for computing fairness.
Click to show internal directories.
Click to hide internal directories.