autoscaler

package
v0.0.0-...-79e2fc8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoscaler

type Autoscaler struct {
	CoolDown int
	// contains filtered or unexported fields
}

func NewAutoscaler

func NewAutoscaler(p Provider, serviceId string, targetUp int, targetDown int, coolDown int) Autoscaler

func (*Autoscaler) ScaleDown

func (a *Autoscaler) ScaleDown() error

func (*Autoscaler) ScaleUp

func (a *Autoscaler) ScaleUp() error

type Autoscalers

type Autoscalers map[string]Autoscaler

type Provider

type Provider interface {
	Scale(string, int, bool) error
	Name() string
}

Jump to

Keyboard shortcuts

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