autoscaler

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package autoscaler provides methods for scaling a resource - by triggering metric gathering, feeding these metrics to an evaluation and using this evaluation to scale the resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scaler

type Scaler struct {
	Scaler          scaling.Scaler
	Client          resourceclient.Client
	Config          *config.Config
	GetMetricer     metricget.GetMetricer
	GetEvaluationer evaluatecalc.GetEvaluationer
}

Scaler handles scaling up/down the resource being managed; triggering metric gathering and feeding an evaluator these metrics, before taking the results and using them to interact with Kubernetes to scale up/down

func (*Scaler) Scale

func (s *Scaler) Scale() error

Scale gets the managed resource, gathers metrics, evaluates these metrics and finally if a change is required then it scales the resource

Jump to

Keyboard shortcuts

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