Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MemoryQoS (0.35 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    	enforceMemoryQoS := false
    	// Set memory.min and memory.high if MemoryQoS enabled with cgroups v2
    	if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.MemoryQoS) &&
    		isCgroup2UnifiedMode() {
    		enforceMemoryQoS = true
    	}
    	cl, err := m.generateLinuxContainerConfig(container, pod, uid, username, nsTarget, enforceMemoryQoS)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/qos_container_manager_linux.go

    			configs[v1.PodQOSBurstable].ResourceParameters.Unified = make(map[string]string)
    		}
    		configs[v1.PodQOSBurstable].ResourceParameters.Unified[Cgroup2MemoryMin] = strconv.FormatInt(burstableMin, 10)
    		klog.V(4).InfoS("MemoryQoS config for qos", "qos", v1.PodQOSBurstable, "memoryMin", burstableMin)
    	}
    
    	if guaranteedMin > 0 {
    		if configs[v1.PodQOSGuaranteed].ResourceParameters.Unified == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 20:42:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/config/validation/validation_test.go

    	}, {
    		name: "enable MemoryQoS without specifying MemoryThrottlingFactor",
    		configure: func(conf *kubeletconfig.KubeletConfiguration) *kubeletconfig.KubeletConfiguration {
    			conf.FeatureGates = map[string]bool{"MemoryQoS": true}
    			conf.MemoryThrottlingFactor = nil
    			return conf
    		},
    		errMsg: "invalid configuration: memoryThrottlingFactor is required when MemoryQoS feature flag is enabled",
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/node_container_manager_linux.go

    	if rp == nil {
    		return fmt.Errorf("%q cgroup is not configured properly", cName)
    	}
    
    	// Enforce MemoryQoS for cgroups of kube-reserved/system-reserved. For more information,
    	// see https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2570-memory-qos
    	if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.MemoryQoS) {
    		if rp.Memory != nil {
    			if rp.Unified == nil {
    				rp.Unified = make(map[string]string)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. pkg/kubelet/apis/config/validation/validation.go

    	}
    
    	if localFeatureGate.Enabled(features.MemoryQoS) && kc.MemoryThrottlingFactor == nil {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: memoryThrottlingFactor is required when MemoryQoS feature flag is enabled"))
    	}
    	if kc.MemoryThrottlingFactor != nil && (*kc.MemoryThrottlingFactor <= 0 || *kc.MemoryThrottlingFactor > 1.0) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. pkg/features/kube_features.go

    	MemoryManager featuregate.Feature = "MemoryManager"
    
    	// owner: @xiaoxubeii
    	// kep: https://kep.k8s.io/2570
    	// alpha: v1.22
    	//
    	// Enables kubelet to support memory QoS with cgroups v2.
    	MemoryQoS featuregate.Feature = "MemoryQoS"
    
    	// owner: @sanposhiho
    	// kep: https://kep.k8s.io/3022
    	// alpha: v1.24
    	// beta: v1.25
    	// GA: v1.30
    	//
    	// Enable MinDomains in Pod Topology Spread.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 22:51:23 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  7. cmd/kubelet/app/server.go

    	if err := options.ValidateKubeletServer(s); err != nil {
    		return err
    	}
    
    	// Warn if MemoryQoS enabled with cgroups v1
    	if utilfeature.DefaultFeatureGate.Enabled(features.MemoryQoS) &&
    		!isCgroup2UnifiedMode() {
    		klog.InfoS("Warning: MemoryQoS feature only works with cgroups v2 on Linux, but enabled with cgroups v1")
    	}
    	// Obtain Kubelet Lock File
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  8. pkg/kubelet/apis/config/types.go

    	// when setting the cgroupv2 memory.high value to enforce MemoryQoS.
    	// Decreasing this factor will set lower high limit for container cgroups and put heavier reclaim pressure
    	// while increasing will put less reclaim pressure.
    	// See https://kep.k8s.io/2570 for more details.
    	// Default: 0.9
    	// +featureGate=MemoryQoS
    	// +optional
    	MemoryThrottlingFactor *float64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	// MemorySwapBehavior defines how swap is used
    	memorySwapBehavior string
    
    	//Function to get node allocatable resources
    	getNodeAllocatable func() v1.ResourceList
    
    	// Memory throttling factor for MemoryQoS
    	memoryThrottlingFactor float64
    
    	// Root directory used to store pod logs
    	podLogsDirectory string
    }
    
    // KubeGenericRuntime is a interface contains interfaces for container runtime and command.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  10. pkg/generated/openapi/zz_generated.openapi.go

    						SchemaProps: spec.SchemaProps{
    							Description: "MemoryThrottlingFactor specifies the factor multiplied by the memory limit or node allocatable memory when setting the cgroupv2 memory.high value to enforce MemoryQoS. Decreasing this factor will set lower high limit for container cgroups and put heavier reclaim pressure while increasing will put less reclaim pressure. See https://kep.k8s.io/2570 for more details. Default: 0.9",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top