kubernetesk8s.io/kubernetes/pkg/util/sysctl Index | Files

package sysctl

import "k8s.io/kubernetes/pkg/util/sysctl"

Index

Constants

const (
	VmOvercommitMemory = "vm/overcommit_memory"
	VmPanicOnOOM       = "vm/panic_on_oom"
	KernelPanic        = "kernel/panic"
	KernelPanicOnOops  = "kernel/panic_on_oops"

	VmOvercommitMemoryAlways    = 1 // kernel performs no memory over-commit handling
	VmPanicOnOOMInvokeOOMKiller = 0 // kernel calls the oom_killer function when OOM occurs

	KernelPanicOnOopsAlways  = 1  // kernel panics on kernel oops
	KernelPanicRebootTimeout = 10 // seconds after a panic for the kernel to reboot
)

Functions

func GetSysctl

func GetSysctl(sysctl string) (int, error)

GetSysctl returns the value for the specified sysctl setting

func SetSysctl

func SetSysctl(sysctl string, newVal int) error

SetSysctl modifies the specified sysctl flag to the new value

Source Files

sysctl.go

Version
v1.3.0-alpha.4
Published
May 17, 2016
Platform
js/wasm
Imports
4 packages
Last checked
32 minutes ago

Tools for package owners.