scaling

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Logger   micrologger.Logger
	Provider provider.Interface
}

type Interface

type Interface interface {
	// Test executes the scaling test using the configured provider
	// implementation. The provider implementation has to be aware of the guest
	// cluster it has to act against. The test processes the following steps to
	// ensure scaling works.
	//
	//     - Scale guest cluster up by one worker.
	//     - Wait for new guest cluster worker to be up.
	//     - Scale guest cluster down by one worker.
	//     - Wait for old guest cluster worker to be down.
	//
	Test(ctx context.Context) error
}

type Scaling

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

func New

func New(config Config) (*Scaling, error)

func (*Scaling) Test

func (s *Scaling) Test(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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