e2e

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinPodStartupMeasurements = 30
	TotalPodCount             = 100
)

Variables

This section is empty.

Functions

func PodStartupLatencyToPerfData

func PodStartupLatencyToPerfData(latency *PodStartupLatency) *perftype.PerfData

// PodStartupLatencyToPerfData transforms PodStartupLatency to PerfData.

func PrettyPrintJSON

func PrettyPrintJSON(metrics interface{}) string

func PrintLatencies

func PrintLatencies(latencies []PodLatencyData, header string)

Types

type LatencyMetric

type LatencyMetric struct {
	Perc50  time.Duration `json:"Perc50"`
	Perc90  time.Duration `json:"Perc90"`
	Perc99  time.Duration `json:"Perc99"`
	Perc100 time.Duration `json:"Perc100"`
}

// Dashboard metrics

func ExtractLatencyMetrics

func ExtractLatencyMetrics(latencies []PodLatencyData) LatencyMetric

type LatencySlice

type LatencySlice []PodLatencyData

func (LatencySlice) Len

func (a LatencySlice) Len() int

func (LatencySlice) Less

func (a LatencySlice) Less(i, j int) bool

func (LatencySlice) Swap

func (a LatencySlice) Swap(i, j int)

type PodLatencyData

type PodLatencyData struct {
	///// Name of the pod
	Name string
	///// Node this pod was running on
	Node string
	///// Latency information related to pod startuptime
	Latency time.Duration
}

/// PodLatencyData encapsulates pod startup latency information.

type PodStartupLatency

type PodStartupLatency struct {
	CreateToScheduleLatency LatencyMetric `json:"createToScheduleLatency"`
	ScheduleToRunLatency    LatencyMetric `json:"scheduleToRunLatency"`
	RunToWatchLatency       LatencyMetric `json:"runToWatchLatency"`
	ScheduleToWatchLatency  LatencyMetric `json:"scheduleToWatchLatency"`
	E2ELatency              LatencyMetric `json:"e2eLatency"`
}

func (*PodStartupLatency) PrintHumanReadable

func (l *PodStartupLatency) PrintHumanReadable() string

func (*PodStartupLatency) PrintJSON

func (l *PodStartupLatency) PrintJSON() string

Jump to

Keyboard shortcuts

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