Documentation ¶
Index ¶
- Constants
- func New(_ runtime.Object, h framework.FrameworkHandle) (framework.Plugin, error)
- type OsmoticComputingOptimizer
- func (oco *OsmoticComputingOptimizer) Name() string
- func (oco *OsmoticComputingOptimizer) NormalizeScore(ctx context.Context, state *framework.CycleState, p *v1.Pod, ...) *framework.Status
- func (oco *OsmoticComputingOptimizer) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (oco *OsmoticComputingOptimizer) ScoreExtensions() framework.ScoreExtensions
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 ¶
Types ¶
type OsmoticComputingOptimizer ¶
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 ¶
func (oco *OsmoticComputingOptimizer) NormalizeScore(ctx context.Context, state *framework.CycleState, p *v1.Pod, scores framework.NodeScoreList) *framework.Status
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.
Click to show internal directories.
Click to hide internal directories.