minimizepower

package
v0.0.0-...-adfe83c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const MinimizePowerName = "oc-score-plugin"

MinimizePowerName is the name of the plugin used in the plugin registry and configurations.

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type OsmoticComputingOptimizer

type OsmoticComputingOptimizer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

OsmoticComputingOptimizer is a plugin that prioritizes the nodes with the lowest increase in power consumption.

func (*OsmoticComputingOptimizer) Name

func (oco *OsmoticComputingOptimizer) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (*OsmoticComputingOptimizer) NormalizeScore

NormalizeScore invoked after scoring all nodes.

func (*OsmoticComputingOptimizer) Score

func (oco *OsmoticComputingOptimizer) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)

Score invoked at the score extension point. The returned score is the amount of increase in power consumption.

func (*OsmoticComputingOptimizer) ScoreExtensions

func (oco *OsmoticComputingOptimizer) ScoreExtensions() framework.ScoreExtensions

ScoreExtensions of the Score plugin.

Jump to

Keyboard shortcuts

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