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 ¶
View Source
const RunType = "scaler"
RunType autoscaler marks the metric gathering/evaluation as running during a scale
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scaler ¶
type Scaler struct { Scaler scale.Scaler Client resourceclient.Client Config *config.Config GetMetricer metric.GetMetricer GetEvaluationer evaluate.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
Click to show internal directories.
Click to hide internal directories.