auto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Nomad    *client.Nomad
	Logger   zerolog.Logger
	Policy   state.PolicyBackend
	Resource resource.Handler
	Scale    scale.Scale
	Interval int
	Threads  int
}

type Scale

type Scale struct {
	// contains filtered or unexported fields
}

func NewAutoScaler

func NewAutoScaler(cfg *Config) (*Scale, error)

func (*Scale) IsRunning

func (s *Scale) IsRunning() bool

IsRunning is used to determine if the autoscaler loop is running.

func (*Scale) Run

func (s *Scale) Run()

func (*Scale) Stop

func (s *Scale) Stop()

Stop is used to gracefully stop the autoscaling workers.

Jump to

Keyboard shortcuts

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