Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Taken from lmctfy https://github.com/google/lmctfy/blob/master/lmctfy/controllers/cpu_controller.cc MilliCPUToCPU int64 = 1000 // 100000 is equivalent to 100ms QuotaPeriod int64 = 100000 MinQuotaPeriod int64 = 1000 )
Variables ¶
View Source
var ContainerNotFoundError error = errors.New("Container wasn't found")
Functions ¶
func LoadCgroup ¶
func MilliCPUToQuota ¶
Copied with care from the Kubelet source code. MilliCPUToQuota converts milliCPU to CFS quota and period values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.