autoscale

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KnativeMetricKey          = "autoscaling.knative.dev/metric"
	KnativeAutoscaleClassKey  = "autoscaling.knative.dev/class"
	KnativeAutoscaleTargetKey = "autoscaling.knative.dev/target"
	AutoScalerSubString       = "autoscaling"
)

Variables

View Source
var KPAMetrics = []string{"rps", "concurrency"}
View Source
var TargetDefaultValues = map[string]string{
	"rps":         "200",
	"cpu":         "80",
	"memory":      "70",
	"concurrency": "10",
}

Functions

func SetAutoScaler

func SetAutoScaler(capp cappv1alpha1.Capp, defaults map[string]string) map[string]string

SetAutoScaler takes a Capp and a Knative Service and sets the autoscaler annotations based on the Capp's ScaleMetric. Returns a map of the autoscaler annotations that were set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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