Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetContainerOOMScoreAdjust (0.34 sec)

  1. pkg/kubelet/qos/policy.go

    	KubeletOOMScoreAdj int = -999
    	// KubeProxyOOMScoreAdj is the OOM score adjustment for kube-proxy
    	KubeProxyOOMScoreAdj  int = -999
    	guaranteedOOMScoreAdj int = -997
    	besteffortOOMScoreAdj int = 1000
    )
    
    // GetContainerOOMScoreAdjust returns the amount by which the OOM score of all processes in the
    // container should be adjusted.
    // The OOM score of a process is the percentage of memory it consumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 14:49:26 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. pkg/kubelet/qos/policy_test.go

    		},
    		{
    			pod:             &nodeCritical,
    			memoryCapacity:  4000000000,
    			lowOOMScoreAdj:  -997,
    			highOOMScoreAdj: -997,
    		},
    	}
    	for _, test := range oomTests {
    		oomScoreAdj := GetContainerOOMScoreAdjust(test.pod, &test.pod.Spec.Containers[0], test.memoryCapacity)
    		if oomScoreAdj < test.lowOOMScoreAdj || oomScoreAdj > test.highOOMScoreAdj {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 03 21:34:27 UTC 2021
    - 5.6K bytes
    - Viewed (0)
Back to top