Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ResmgrKeyNamespace is a CRI Resource Manager namespace ResmgrKeyNamespace = "cri-resource-manager.intel.com" // NamespaceSystem is the kubernetes system namespace. NamespaceSystem = "kube-system" // PodNameLabel is the key for the kubernetes pod name label. PodNameLabel = "io.kubernetes.pod.name" // PodNameLabel is the key for the kubernetes pod UID label. PodUIDLabel = "io.kubernetes.pod.uid" // ContainerNameLabel is the key for the kubernetes container name label. ContainerNameLabel = "io.kubernetes.container.name" )
View Source
const ( // MilliCPUToCPU is milli-CPUs worth a full CPU. MilliCPUToCPU = 1000 // QuotaPeriod is 100000 microseconds, or 100ms QuotaPeriod = 100000 // MinQuotaPeriod is 1000 microseconds, or 1ms MinQuotaPeriod = 1000 )MinShares = 2 MaxShares = 262144 SharesPerCPU = 1024
Variables ¶
This section is empty.
Functions ¶
func MilliCPUToQuota ¶ added in v0.8.4
MilliCPUToQuota converts milliCPU to CFS quota and period values. (Almost) identical to the same function in kubelet.
func MilliCPUToShares ¶ added in v0.8.4
MilliCPUToShares converts the milliCPU to CFS shares. Identical to the same function in kubelet.
func QuotaToMilliCPU ¶ added in v0.8.4
QuotaToMilliCPU converts CFS quota and period to milli-CPUs.
func SharesToMilliCPU ¶ added in v0.8.4
SharesToMilliCPU converts CFS CPU shares to milli-CPUs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.