Documentation ¶
Overview ¶
This package does not support edge based actions. Taking action on edges makes sense for alarms and other state tracking integrations, scaling operations should continue and repeat periodically while a monitor is in an ALARM state. This should ensure that the step increase or decrease will eventually reach some boundary beyond which operations stabilize.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func NewContext(ctx context.Context, cfg DockerScaleConfig) context.Context
Types ¶
type DockerScaleConfig ¶
type DockerScaleConfig struct { ServiceID string Floor uint Ceiling uint Step int ScaleOnFlap bool Timeout time.Duration RetryInterval time.Duration RetryJitter time.Duration EnableLogging bool EnablePanic bool }
func FromContext ¶
func FromContext(ctx context.Context) (DockerScaleConfig, bool)
Click to show internal directories.
Click to hide internal directories.