scale

package
v0.0.0-...-96b44d4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

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 Alarm

func Alarm(ctx context.Context, m siren.Monitor)

func Flapping

func Flapping(ctx context.Context, m siren.Monitor)

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)

Jump to

Keyboard shortcuts

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