clusterloader

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 21 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 = `` /* 686-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 ref. https://github.com/kubernetes/perf-tests/pull/1345

Variables

This section is empty.

Functions

func MergePodStartupLatency added in v1.4.6

func MergePodStartupLatency(datas ...measurement_util.PerfData) (perfData measurement_util.PerfData)

func ParsePodStartupLatency added in v1.4.6

func ParsePodStartupLatency(fpath string) (perfData measurement_util.PerfData, err error)

Types

type Config

type Config struct {
	Logger    *zap.Logger
	LogWriter io.Writer

	Stopc chan struct{}

	S3API        s3iface.S3API
	S3BucketName string

	// 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
	ReportTarGzS3Key string
	// LogPath is the log file path to stream clusterloader binary runs.
	LogPath  string
	LogS3Key string
	// PodStartupLatencyPath is the combined PodStartupLatency output path.
	PodStartupLatencyPath  string
	PodStartupLatencyS3Key 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

	CL2UseHostNetworkPods           bool
	CL2LoadTestThroughput           int
	CL2EnablePVS                    bool
	CL2SchedulerThroughputThreshold int
	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