package oom
import "k8s.io/kubernetes/pkg/util/oom"
Package oom implements utility functions relating to out of memory management.
Index ¶
Types ¶
type FakeOomAdjuster ¶
type FakeOomAdjuster struct{}
type OomAdjuster ¶
type OomAdjuster struct { ApplyOomScoreAdj func(pid int, oomScoreAdj int) error ApplyOomScoreAdjContainer func(cgroupName string, oomScoreAdj, maxTries int) error // contains filtered or unexported fields }
This is a struct instead of an interface to allow injection of process ID listers and applying OOM score in tests. TODO: make this an interface, and inject a mock ioutil struct for testing.
func NewFakeOomAdjuster ¶
func NewFakeOomAdjuster() *OomAdjuster
func NewOomAdjuster ¶
func NewOomAdjuster() *OomAdjuster
Source Files ¶
doc.go oom.go oom_fake.go oom_unsupported.go
- Version
- v1.1.9-beta.0
- Published
- Feb 23, 2016
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 40 minutes ago –
Tools for package owners.