runtime

package
v0.0.0-...-2afb8d7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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 LoadCgroup(ctx context.Context, containerID string, podLevel bool) (cgroups.Cgroup, error)

func MilliCPUToQuota

func MilliCPUToQuota(milliCPU int64) (quota int64)

Copied with care from the Kubelet source code. MilliCPUToQuota converts milliCPU to CFS quota and period values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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