burst

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package burst provides burst-awareness capability for the Predictive Horizontal Pod Autoscaler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSLIEvaluation

func GetSLIEvaluation(predictiveConfig *config.Config, slis []ServiceLevelIndicator, prometheusAPI v1.API) (int32, error)

GetSLIEvaluation returns the target prediction for the burst-aware capability by service level indicator

Types

type ServiceLevelIndicator

type ServiceLevelIndicator struct {
	Type                     string
	Name                     string
	CurrentValue             float64
	ObjectiveValue           float64
	ReplicaOffsetOnViolation int32
}

ServiceLevelIndicator is key value pair of a service level indicator and its objective value (SLO)

func SetSLIObjective

func SetSLIObjective(serviceLevelObjective []*config.SLO) []ServiceLevelIndicator

SetSLIObjective sets the objective value for the service level indicator

Jump to

Keyboard shortcuts

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