qos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodCPUSuppressionToleranceRate

func GetPodCPUSuppressionToleranceRate(qosConf *generic.QoSConfiguration, pod *v1.Pod) (float64, error)

GetPodCPUSuppressionToleranceRate parses cpu suppression tolerance rate for the given pod, and cpu suppression is only supported for reclaim pods. if the given is not nominated with cpu suppression, return max to indicate that it can be suppressed for any degree.

func IsPodNumaBinding

func IsPodNumaBinding(qosConf *generic.QoSConfiguration, pod *v1.Pod) bool

IsPodNumaBinding checks whether the pod needs numa-binding

func ParseKatalystQOSEnhancement

func ParseKatalystQOSEnhancement(annotations map[string]string, enhancementKey string) map[string]string

ParseKatalystQOSEnhancement parses enhancements from annotations by given key, since enhancement values are stored as k-v, so we should unmarshal it into maps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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