Documentation
¶
Index ¶
- func AnnotationsIndicateNUMABinding(annotations map[string]string) bool
- func AnnotationsIndicateNUMAExclusive(annotations map[string]string) bool
- func GetPodCPUSuppressionToleranceRate(qosConf *generic.QoSConfiguration, pod *v1.Pod) (float64, error)
- func GetPodNetClassID(podAnnotations map[string]string, podLevelNetClassAnnoKey string) (bool, uint32, error)
- func GetRSSOverUseEvictThreshold(qosConf *generic.QoSConfiguration, pod *v1.Pod) (threshold *float64, invalid bool)
- func IsPodNumaBinding(qosConf *generic.QoSConfiguration, pod *v1.Pod) bool
- func IsPodNumaExclusive(qosConf *generic.QoSConfiguration, pod *v1.Pod) bool
- func ParseKatalystQOSEnhancement(annotations map[string]string, enhancementKey string) map[string]string
- func ParseMemoryEnhancement(qosConf *generic.QoSConfiguration, pod *v1.Pod) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotationsIndicateNUMABinding ¶ added in v0.2.0
func AnnotationsIndicateNUMAExclusive ¶ added in v0.2.0
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 GetPodNetClassID ¶ added in v0.2.0
func GetPodNetClassID(podAnnotations map[string]string, podLevelNetClassAnnoKey string) (bool, uint32, error)
GetPodNetClassID parses net class id for the given pod. if the given pod doesn't specify a class id, the first value returned will be false
func GetRSSOverUseEvictThreshold ¶ added in v0.2.0
func GetRSSOverUseEvictThreshold(qosConf *generic.QoSConfiguration, pod *v1.Pod) (threshold *float64, invalid bool)
GetRSSOverUseEvictThreshold parse the user specified threshold and checks if it's valid
func IsPodNumaBinding ¶
func IsPodNumaBinding(qosConf *generic.QoSConfiguration, pod *v1.Pod) bool
IsPodNumaBinding checks whether the pod needs numa-binding
func IsPodNumaExclusive ¶ added in v0.3.0
func IsPodNumaExclusive(qosConf *generic.QoSConfiguration, pod *v1.Pod) bool
IsPodNumaExclusive checks whether the pod needs numa-exclusive
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.
func ParseMemoryEnhancement ¶ added in v0.3.0
Types ¶
This section is empty.