binpack

package
v1.6.1-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// BinpackWeight is the key for providing Binpack Priority Weight in YAML
	BinpackWeight = "binpack.weight"
	// BinpackCPU is the key for weight of cpu
	BinpackCPU = "binpack.cpu"
	// BinpackMemory is the key for weight of memory
	BinpackMemory = "binpack.memory"

	// BinpackResources is the key for additional resource key name
	BinpackResources = "binpack.resources"
	// BinpackResourcesPrefix is the key prefix for additional resource key name
	BinpackResourcesPrefix = BinpackResources + "."
)
View Source
const (
	// PluginName indicates name of volcano scheduler plugin.
	PluginName = "binpack"
)

Variables

This section is empty.

Functions

func BinPackingScore

func BinPackingScore(task *api.TaskInfo, node *api.NodeInfo, weight priorityWeight) float64

BinPackingScore use the best fit polices during scheduling. Goals: - Schedule Jobs using BestFit Policy using Resource Bin Packing Priority Function - Reduce Fragmentation of scarce resources on the Cluster

func New

func New(aruguments framework.Arguments) framework.Plugin

New function returns prioritizePlugin object

func ResourceBinPackingScore

func ResourceBinPackingScore(requested, capacity, used float64, weight int) float64

ResourceBinPackingScore calculate the binpack score for resource with provided info

Types

This section is empty.

Jump to

Keyboard shortcuts

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