analyzer

package
v0.0.0-...-cce361c Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPodsBeforeEvent = errors.New("No pods for event")

Functions

func CoalesceScenarios

func CoalesceScenarios(scenarios []scalehist.Scenario, scenarioDivideInterval time.Duration) []scalehist.Scenario

func CollapseNodeGroups

func CollapseNodeGroups(nodeGroups []scalehist.NodeGroupInfo) (collapsedNodeGroups []scalehist.NodeGroupInfo)

func CombineScenario

func CombineScenario(a, b scalehist.Scenario) (c scalehist.Scenario)

func ComputeMaximalResource

func ComputeMaximalResource(resources ...corev1.ResourceList) corev1.ResourceList

func GetNodeName

func GetNodeName(podInfo scalehist.PodInfo) string

func HasNodeName

func HasNodeName(podInfo scalehist.PodInfo, _ int) bool

func IsCriticalComponent

func IsCriticalComponent(podInfo scalehist.PodInfo, _ int) bool

func IsSystemComponent

func IsSystemComponent(podInfo scalehist.PodInfo, _ int) bool

func NewDefaultAnalyzer

func NewDefaultAnalyzer(dataDBPath string, scenarioCoalesceInterval, scenarioTolerationInterval time.Duration) (scalehist.Analyzer, error)

func UniqueNodeGroupInfos

func UniqueNodeGroupInfos(nodeGroups []scalehist.NodeGroupInfo) []scalehist.NodeGroupInfo

func UniqueNodeInfos

func UniqueNodeInfos(nodes []scalehist.NodeInfo) []scalehist.NodeInfo

func UniquePodInfos

func UniquePodInfos(pods []scalehist.PodInfo) []scalehist.PodInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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