autoscaler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoscaler

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

func New

func New(queue qbas.Queue, rc *rc.ReplicationController, cfg qbas.Config, logger *zap.Logger) Autoscaler

func (Autoscaler) Backlog

func (as Autoscaler) Backlog(ctx context.Context) (int64, error)

func (Autoscaler) Resize

func (as Autoscaler) Resize(ctx context.Context, newSize int64) error

func (Autoscaler) Run

func (as Autoscaler) Run(ctx context.Context, refresh time.Duration)

func (Autoscaler) ScaleDown

func (as Autoscaler) ScaleDown(ctx context.Context, newSize int64) error

func (Autoscaler) Size

func (as Autoscaler) Size(ctx context.Context) (int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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