hintoptimizer

package
v0.5.45 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyHintOptimizer

type DummyHintOptimizer struct{}

DummyHintOptimizer is a no-op implementation of HintOptimizer.

func (*DummyHintOptimizer) OptimizeHints

OptimizeHints for DummyHintOptimizer does nothing and returns nil.

func (*DummyHintOptimizer) Run

func (d *DummyHintOptimizer) Run(_ <-chan struct{}) error

Run for DummyHintOptimizer does nothing.

type HintOptimizer

type HintOptimizer interface {
	// OptimizeHints optimizes the given list of topology hints based on the current state and request.
	OptimizeHints(Request, *pluginapi.ListOfTopologyHints) error
	// Run starts the hint optimizer.
	Run(stopCh <-chan struct{}) error
}

HintOptimizer is the interface for optimizing topology hints.

type Request

type Request struct {
	*pluginapi.ResourceRequest
	CPURequest float64
}

Request wraps the original ResourceRequest and includes the CPU request amount.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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