resource

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 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 AvailableCapacityStrategy

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

func (*AvailableCapacityStrategy) ShouldBidBasedOnUsage

type AvailableCapacityStrategyParams

type AvailableCapacityStrategyParams struct {
	RunningCapacityTracker  capacity.Tracker
	EnqueuedCapacityTracker capacity.Tracker
}

type ChainedResourceBidStrategy

type ChainedResourceBidStrategy struct {
	Strategies []bidstrategy.ResourceBidStrategy
}

func NewChainedResourceBidStrategy

func NewChainedResourceBidStrategy(strategies ...bidstrategy.ResourceBidStrategy) *ChainedResourceBidStrategy

func (*ChainedResourceBidStrategy) AddStrategy

AddStrategy Add new strategy to the end of the chain

func (*ChainedResourceBidStrategy) ShouldBidBasedOnUsage

ShouldBidBasedOnUsage Iterate over all strategies, and return shouldBid if no error is thrown and none of the strategies return should not bid.

type MaxCapacityStrategy

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

func NewMaxCapacityStrategy

func NewMaxCapacityStrategy(params MaxCapacityStrategyParams) *MaxCapacityStrategy

func (*MaxCapacityStrategy) ShouldBidBasedOnUsage

type MaxCapacityStrategyParams

type MaxCapacityStrategyParams struct {
	MaxJobRequirements models.Resources
}

Jump to

Keyboard shortcuts

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