autoscale

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScale

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

func NewAutoScaleServer

func NewAutoScaleServer(cfg *SetupConfig) (*AutoScale, error)

func (*AutoScale) IsRunning added in v0.2.0

func (a *AutoScale) IsRunning() bool

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

func (*AutoScale) Run

func (a *AutoScale) Run()

Run starts the autoscaler ticker loop and only stops when Stop() is called.

func (*AutoScale) Stop added in v0.2.0

func (a *AutoScale) Stop()

Stop is used to gracefully stop the autoscaling workers.

type Config

type Config struct {
	ScalingInterval   int
	ScalingThreads    int
	StrictChecking    bool
	MetricProviderCfg *server.MetricProviderConfig
}

type SetupConfig added in v0.4.0

type SetupConfig struct {
	ScalingInterval   int
	ScalingThreads    int
	StrictChecking    bool
	MetricProviderCfg *server.MetricProviderConfig

	Logger        zerolog.Logger
	PolicyBackend policyBackend.PolicyBackend
	Scale         scale.Scale
	Nomad         *api.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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