extension

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQosLevel

func GetQosLevel(pod *corev1.Pod) int

GetQosLevel return OS qos level by QosLevel. If not specified, zero will be returned.

func NormalizeQosLevel

func NormalizeQosLevel(qosLevel int64) int64

NormalizeQosLevel normalizes qos level, for memory and network qos, only 0 and -1 are supported now.

Types

type QosLevel

type QosLevel string
const (
	// QosLevelLC means the qos level Latency Critical.
	QosLevelLC QosLevel = "LC"
	// QosLevelHLS means the qos level Highly Latency Sensitive.
	QosLevelHLS QosLevel = "HLS"
	// QosLevelLS means the qos level Latency Sensitive.
	QosLevelLS QosLevel = "LS"
	// QosLevelBE means the qos level Best Effort.
	QosLevelBE QosLevel = "BE"
)

Jump to

Keyboard shortcuts

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