coordinator

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 12 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 {
	// ClusterConfig defines the load-test agent cluster configuration.
	ClusterConfig cluster.LoadAgentClusterConfig
	// MonitorConfig holds the performance monitor configuration.
	MonitorConfig performance.MonitorConfig
	// The number of active users to increment at each iteration of the feedback loop.
	// It should be proportional to the maximum number of users expected to test.
	NumUsersInc int
	// The number of users to decrement at each iteration of the feedback loop.
	// It should be proportional to the maximum number of users expected to test.
	NumUsersDec int
	// The number of seconds to wait after a performance degradation alert before
	// incrementing or decrementing users again.
	RestTimeSec int
	LogSettings logger.Settings
}

Config holds the necessary information to drive a cluster of load-test agents performing a load-test on a target instance.

func ReadConfig

func ReadConfig(configFilePath string) (*Config, error)

func (*Config) IsValid

func (c *Config) IsValid() error

IsValid checks whether a Config is valid or not. Returns an error if the validation fails.

type Coordinator

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

Coordinator is the object used to coordinate a cluster of load-test agents.

func New

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

New creates and initializes a new Coordinator for the given config. An error is returned if the initialization fails.

func (*Coordinator) Run

func (c *Coordinator) Run() error

Run starts a cluster of load-test agents.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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