predictors

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type NaivePredictor

type NaivePredictor struct {
	// contains filtered or unexported fields
}

func (*NaivePredictor) Estimate

func (s *NaivePredictor) Estimate(containerName string, limits *autoscalev1.ContainerResourcePolicy, partition int32) (*corev1.ResourceRequirements, bool)

type Predictor added in v0.4.0

type Predictor interface {
	// TODO: do not expose autoscalerv1 type. Replace with some internal type
	Estimate(containerName string, limits *autoscalev1.ContainerResourcePolicy, partition int32) (*corev1.ResourceRequirements, bool)
}

Jump to

Keyboard shortcuts

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