algorithm

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRecommender

func GetRecommender() map[string]ResourceRecommender

GetRecommender returns those recommenders that have been registered

func RegisterRecommender

func RegisterRecommender(p ResourceRecommender)

RegisterRecommender indicates that all in-tree algorithm implementations should be registered here, so that the main VPA process can walk through those algorithms to produce th final resources.

Types

type ResourceRecommender

type ResourceRecommender interface {
	Name() string

	// GetRecommendedPodResources calculate the recommended resources for given SPD
	GetRecommendedPodResources(spd *workload.ServiceProfileDescriptor, pods []*corev1.Pod) (
		[]apis.RecommendedPodResources, []apis.RecommendedContainerResources, error)
}

ResourceRecommender is used as a common interface for in-tree VPA algorithms; all in-tree implementations should implement those functions defined here.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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