Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string MinCount uint MaxCount uint Logger zerolog.Logger MaxOpenScalingTickets uint WatcherInterval time.Duration }
Config is the configuration for the Scaler
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics represents the collection of metrics internally set by scaler.
func NewMetrics ¶
func NewMetrics() Metrics
NewMetrics returns the metrics collection needed for the SAA.
type Scaler ¶
type Scaler struct {
// contains filtered or unexported fields
}
Scaler is a component responsible for scaling a scalingObject
type ScalingTarget ¶
type ScalingTarget interface { AdjustScalingObjectCount(scalingObject string, min uint, max uint, from uint, to uint) error GetScalingObjectCount(scalingObject string) (uint, error) IsScalingObjectDead(scalingObject string) (bool, error) String() string }
ScalingTarget represents the interface to be implemented in order to be used by the Scaler as scaling target.
type ScalingTicket ¶
type ScalingTicket struct {
// contains filtered or unexported fields
}
ScalingTicket represents a ticket/ scalingObject to express the whish to scale and to track the state of the scaling.
func NewScalingTicket ¶
func NewScalingTicket(desiredCount uint, dryRun bool) ScalingTicket
NewScalingTicket creates and opens/ issues a new ScalingTicket
Click to show internal directories.
Click to hide internal directories.