util

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	LoadTestApplyCountMetric = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "workload_apply_total",
		Help: "Total number of placement",
	}, []string{"concurrency", "fleetSize", "result"})

	LoadTestApplyLatencyMetric = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "workload_apply_latency",
		Help:    "Length of time from placement change to it is applied to the member cluster",
		Buckets: []float64{0.1, 0.5, 1.0, 2.0, 3, 4, 6, 8, 10, 13, 16, 20, 23, 26, 30, 37, 45, 60, 90, 120, 150, 180, 300, 600, 1200, 1500, 3000},
	}, []string{"concurrency", "fleetSize"})

	LoadTestDeleteCountMetric = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "workload_delete_total",
		Help: "Total number of placement delete",
	}, []string{"concurrency", "fleetSize", "result"})

	LoadTestDeleteLatencyMetric = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "workload_delete_latency",
		Help:    "Length of time from resource deletion to it is deleted from the member cluster",
		Buckets: []float64{0.1, 0.5, 1.0, 1.25, 1.5, 1.75, 2.0, 3, 4, 6, 8, 10, 13, 16, 20, 23, 26, 30, 37, 45, 60, 90, 120, 150, 180, 300, 600, 1200, 1500, 3000},
	}, []string{"concurrency", "fleetSize"})
)

Functions

func ApplyClusterScopeManifests

func ApplyClusterScopeManifests(ctx context.Context, hubClient client.Client) error

func CleanupAll

func CleanupAll(hubClient client.Client) error

func MeasureOnePlacement

func MeasureOnePlacement(ctx context.Context, hubClient client.Client, deadline, interval time.Duration, maxCurrentPlacement int, clusterNames ClusterNames) error

func PrintTestMetrics

func PrintTestMetrics()

Types

type ClusterNames

type ClusterNames []string

func (*ClusterNames) Set

func (i *ClusterNames) Set(value string) error

func (*ClusterNames) String

func (i *ClusterNames) String() string

Jump to

Keyboard shortcuts

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