scenarios

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const E2EPerfScenarioName = "e2e_perf"
View Source
const NodeFairnessScenarioName = "node_fairness"
View Source
const ThroughputScenarioName = "throughput"

Variables

This section is empty.

Functions

func CleanupApp

func CleanupApp(appManager framework.AppManager, appInfo *framework.AppInfo, maxWaitTime time.Duration)

func ConvertToRequestInfos

func ConvertToRequestInfos(requestConfigs []*RequestConfig) []*framework.RequestInfo

func LoadScenarioConf

func LoadScenarioConf(conf *framework.Config, scenarioName string, scenarioConf interface{}) error

func ParseTableFromQPSStatistics

func ParseTableFromQPSStatistics(statistics *profiling.QPSStatistics, orderedKeys []framework.TaskConditionType) *utils.Table

func ParseTableFromStatistic

func ParseTableFromStatistic(statistics *profiling.TimeStatistics) *utils.Table

Types

type E2EPerfCaseConfig

type E2EPerfCaseConfig struct {
	Description    string
	SchedulerName  string
	RequestConfigs []*RequestConfig
}

type E2EPerfScenario

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

func (*E2EPerfScenario) GetName

func (ts *E2EPerfScenario) GetName() string

func (*E2EPerfScenario) Init

func (ts *E2EPerfScenario) Init(kubeClient *utils.KubeClient, conf *framework.Config) error

func (*E2EPerfScenario) Run

func (eps *E2EPerfScenario) Run(results *utils.Results)

type E2EPerfScenarioConfig

type E2EPerfScenarioConfig struct {
	CleanUpDelayMs     int
	ShowNumOfLastTasks int
	Cases              []*E2EPerfCaseConfig
}

type NodeFairnessCaseConfig

type NodeFairnessCaseConfig struct {
	NumPodsPerNode     int
	AllocatePercentage int
	ResourceName       string
}

type NodeFairnessScenario

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

func (*NodeFairnessScenario) GetName

func (nfs *NodeFairnessScenario) GetName() string

func (*NodeFairnessScenario) Init

func (nfs *NodeFairnessScenario) Init(kubeClient *utils.KubeClient, conf *framework.Config) error

func (*NodeFairnessScenario) Run

func (nfs *NodeFairnessScenario) Run(results *utils.Results)

type NodeFairnessScenarioConfig

type NodeFairnessScenarioConfig struct {
	SchedulerNames []string
	Cases          []NodeFairnessCaseConfig
}

type RequestConfig

type RequestConfig struct {
	NumPods          int32
	Repeat           int
	PriorityClass    string
	RequestResources map[string]string
	LimitResources   map[string]string
}

type ThroughputCaseConfig

type ThroughputCaseConfig struct {
	Description    string
	RequestConfigs []*RequestConfig
}

type ThroughputScenario

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

func (*ThroughputScenario) GetName

func (ts *ThroughputScenario) GetName() string

func (*ThroughputScenario) Init

func (ts *ThroughputScenario) Init(kubeClient *utils.KubeClient, conf *framework.Config) error

func (*ThroughputScenario) Run

func (ts *ThroughputScenario) Run(results *utils.Results)

type ThroughputScenarioConfig

type ThroughputScenarioConfig struct {
	CleanUpDelayMs int
	SchedulerNames []string
	Cases          []*ThroughputCaseConfig
}

Jump to

Keyboard shortcuts

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