orchestrator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package orchestrator drives the load generation: it combines a Transport with a Scenario picker and feeds observations into a metrics.Aggregator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config) (time.Duration, error)

Run executes the scenario's workload. It blocks until duration elapses, requests are exhausted, ctx is cancelled, or an unrecoverable error occurs.

Types

type Config

type Config struct {
	Scenario      *scenario.Scenario
	Transport     transport.Transport
	Aggregator    *metrics.Aggregator
	Seed          int64
	ReservoirSize int
	// EnvSnapshot is passed to templating as .Env. Nil means use os.Environ.
	EnvSnapshot map[string]string
}

Config bundles the orchestrator's runtime parameters.

Jump to

Keyboard shortcuts

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