clusterloader

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package clusterloader implements cluster loader. ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2 ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2/testing/overrides

Index

Constants

View Source
const TemplateTestOverrides = `` /* 555-byte string literal not displayed */

ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2/testing/load ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2/testing/overrides

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger *zap.Logger
	Stopc  chan struct{}

	// KubeConfigPath is the kubeconfig path.
	// Optional. If empty, uses in-cluster client configuration.
	KubeConfigPath string

	// ClusterLoaderPath is the clusterloader executable binary path.
	// ref. https://github.com/kubernetes/perf-tests/tree/master/clusterloader2
	ClusterLoaderPath        string
	ClusterLoaderDownloadURL string
	// TestConfigPath is the clusterloader2 test configuration file.
	// Set via "--testconfig" flag.
	TestConfigPath string
	// ReportDir is the clusterloader2 test report directory.
	// Set via "--report-dir" flag.
	ReportDir string
	// ReportTarGzPath is the .tar.gz file path for report directory.
	ReportTarGzPath string
	// LogPath is the log file path to stream clusterloader binary runs.
	LogPath string

	// Runs is the number of "clusterloader2" runs back-to-back.
	Runs    int
	Timeout time.Duration

	// Nodes is the number of nodes.
	// Set via "--nodes" flag.
	Nodes int

	NodesPerNamespace int
	PodsPerNode       int

	BigGroupSize    int
	MediumGroupSize int
	SmallGroupSize  int

	SmallStatefulSetsPerNamespace  int
	MediumStatefulSetsPerNamespace int

	CL2LoadTestThroughput     int
	CL2EnablePVS              bool
	PrometheusScrapeKubeProxy bool
	EnableSystemPodMetrics    bool
}

Config configures cluster loader.

type Loader added in v1.1.9

type Loader interface {
	// Start runs the cluster loader and waits for its completion.
	Start() error
	Stop()
}

Loader defines cluster loader operations.

func New added in v1.1.9

func New(cfg Config) Loader

Directories

Path Synopsis
Package local implements local cluster loader.
Package local implements local cluster loader.
Package remote implements remote cluster loader.
Package remote implements remote cluster loader.

Jump to

Keyboard shortcuts

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