util

package
v1.3.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Guaranteed = "Guaranteed"
	Burstable  = "Burstable"
	BestEffort = "BestEffort"
)

Variables

This section is empty.

Functions

func GetPodQos added in v1.3.0

func GetPodQos(pod *api.Pod) string

GetPodQos returns the QoS class of a pod. 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.

Types

type QoSList added in v1.3.0

type QoSList map[api.ResourceName]string

QoSList is a set of (resource name, QoS class) pairs.

func GetQoS

func GetQoS(container *api.Container) QoSList

GetQoS returns a mapping of resource name to QoS class of a container

Jump to

Keyboard shortcuts

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