qos

package
v0.29.12 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputePodQOS added in v0.29.0

func ComputePodQOS(pod *core.Pod) core.PodQOSClass

ComputePodQOS evaluates the list of containers to determine a pod's QoS class. This function is more expensive than GetPodQOS which should be used for pods having a non-empty .Status.QOSClass. A pod is besteffort if none of its containers have specified any requests or limits. A pod is guaranteed only when requests and limits are specified for all the containers and they are equal. A pod is burstable if limits and requests do not match across all containers.

func GetPodQOS

func GetPodQOS(pod *core.Pod) core.PodQOSClass

GetPodQOS returns the QoS class of a pod persisted in the PodStatus.QOSClass field. If PodStatus.QOSClass is empty, it returns value of ComputePodQOS() which evaluates pod's QoS class.

Types

This section is empty.

Jump to

Keyboard shortcuts

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