kubernetesk8s.io/kubernetes/test/integration/scheduler_perf Index | Files

package benchmark

import "k8s.io/kubernetes/test/integration/scheduler_perf"

Index

Constants

const (

	// Create continuously create API objects without deleting them.
	Create = "create"
	// Recreate creates a number of API objects and then delete them, and repeat the iteration.
	Recreate = "recreate"
)

Functions

func RunBenchmarkPerfScheduling

func RunBenchmarkPerfScheduling(b *testing.B, outOfTreePluginRegistry frameworkruntime.Registry)

RunBenchmarkPerfScheduling runs the scheduler performance tests. Optionally, you can pass your own scheduler plugin via outOfTreePluginRegistry.

Types

type DataItem

type DataItem struct {
	// Data is a map from bucket to real data point (e.g. "Perc90" -> 23.5). Notice
	// that all data items with the same label combination should have the same buckets.
	Data map[string]float64 `json:"data"`
	// Unit is the data unit. Notice that all data items with the same label combination
	// should have the same unit.
	Unit string `json:"unit"`
	// Labels is the labels of the data item.
	Labels map[string]string `json:"labels,omitempty"`
}

DataItem is the data point.

type DataItems

type DataItems struct {
	Version   string     `json:"version"`
	DataItems []DataItem `json:"dataItems"`
}

DataItems is the data point set. It is the struct that perf dashboard expects.

Source Files

create.go dra.go label_selector.go scheduler_perf.go util.go

Version
v1.30.0
Published
Apr 17, 2024
Platform
js/wasm
Imports
55 packages
Last checked
5 minutes ago

Tools for package owners.