config

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(c Config, driver string)

Show Display the netperf config

Types

type Config

type Config struct {
	Parallelism int    `default:"1" yaml:"parallelism,omitempty"`
	Duration    int    `yaml:"duration,omitempty"`
	Profile     string `yaml:"profile,omitempty"`
	Samples     int    `yaml:"samples,omitempty"`
	MessageSize int    `yaml:"messagesize,omitempty"`
	Service     bool   `default:"false" yaml:"service,omitempty"`
	Metric      string
	AcrossAZ    bool
}

Config describes the netperf tests

func ParseConf

func ParseConf(fn string) ([]Config, error)

ParseConf will read in the netperf configuration file which describes which tests to run Returns Config struct

func ParseV2Conf added in v0.1.12

func ParseV2Conf(fn string) ([]Config, error)

ParseV2Conf will read in the netperf configuration file which describes which tests to run Returns Config struct

type PerfScenarios

type PerfScenarios struct {
	NodeLocal      bool
	AcrossAZ       bool
	HostNetwork    bool
	Configs        []Config
	ServerNodeInfo metrics.NodeInfo
	ClientNodeInfo metrics.NodeInfo
	Client         apiv1.PodList
	Server         apiv1.PodList
	ClientAcross   apiv1.PodList
	ClientHost     apiv1.PodList
	ServerHost     apiv1.PodList
	NetperfService *apiv1.Service
	IperfService   *apiv1.Service
	UperfService   *apiv1.Service
	RestConfig     rest.Config
	ClientSet      *kubernetes.Clientset
}

PerfScenarios describes the different scenarios

Jump to

Keyboard shortcuts

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