Documentation ¶
Overview ¶
Package autoscaler contains the autoscaler implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGoals = errors.New("autoscaler: no goals")
ErrNoGoals indicates that no goals were specified.
Functions ¶
This section is empty.
Types ¶
type Autoscaler ¶
type Autoscaler struct { startstopper.StartStopper sync.RWMutex Service swarm.Service Update bool Goals []metric.Goal Period time.Duration CooldownServiceCreated time.Duration CooldownServiceUpdated time.Duration CooldownServiceScaledUp time.Duration CooldownServiceScaledDown time.Duration MaxReplicas uint64 MinReplicas uint64 }
Autoscaler observes one Docker Swarm service and automatically scales it depending on defined metrics.
Click to show internal directories.
Click to hide internal directories.