Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for cpuCFSQuotaPeriod (0.66 sec)

  1. pkg/kubelet/apis/config/validation/validation.go

    	}
    	if !localFeatureGate.Enabled(features.CPUCFSQuotaPeriod) && kc.CPUCFSQuotaPeriod != defaultCFSQuota {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: cpuCFSQuotaPeriod (--cpu-cfs-quota-period) %v requires feature gate CustomCPUCFSQuotaPeriod", kc.CPUCFSQuotaPeriod))
    	}
    	if localFeatureGate.Enabled(features.CPUCFSQuotaPeriod) && utilvalidation.IsInRange(int(kc.CPUCFSQuotaPeriod.Duration), int(1*time.Millisecond), int(time.Second)) != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/container_manager_linux.go

    			podPidsLimit:      cm.PodPidsLimit,
    			enforceCPULimits:  cm.EnforceCPULimits,
    			// cpuCFSQuotaPeriod is in microseconds. NodeConfig.CPUCFSQuotaPeriod is time.Duration (measured in nano seconds).
    			// Convert (cm.CPUCFSQuotaPeriod) [nanoseconds] / time.Microsecond (1000) to get cpuCFSQuotaPeriod in microseconds.
    			cpuCFSQuotaPeriod: uint64(cm.CPUCFSQuotaPeriod / time.Microsecond),
    		}
    	}
    	return &podContainerManagerNoop{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    		cpuPeriod := int64(quotaPeriod)
    		if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.CPUCFSQuotaPeriod) {
    			// kubeGenericRuntimeManager.cpuCFSQuotaPeriod is provided in time.Duration,
    			// but we need to convert it to number of microseconds which is used by kernel.
    			cpuPeriod = int64(m.cpuCFSQuotaPeriod.Duration / time.Microsecond)
    		}
    		cpuQuota := milliCPUToQuota(cpuLimit.MilliValue(), cpuPeriod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    	startupManager   proberesults.Manager
    
    	// If true, enforce container cpu limits with CFS quota support
    	cpuCFSQuota bool
    
    	// CPUCFSQuotaPeriod sets the CPU CFS quota period value, cpu.cfs_period_us, defaults to 100ms
    	cpuCFSQuotaPeriod metav1.Duration
    
    	// wrapped image puller.
    	imagePuller images.ImageManager
    
    	// gRPC service clients
    	runtimeService internalapi.RuntimeService
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  5. pkg/kubelet/apis/config/helpers_test.go

    		"Authentication.Webhook.Enabled",
    		"Authorization.Mode",
    		"Authorization.Webhook.CacheAuthorizedTTL.Duration",
    		"Authorization.Webhook.CacheUnauthorizedTTL.Duration",
    		"CPUCFSQuota",
    		"CPUCFSQuotaPeriod.Duration",
    		"CPUManagerPolicy",
    		"CPUManagerPolicyOptions[*]",
    		"CPUManagerReconcilePeriod.Duration",
    		"TopologyManagerPolicy",
    		"TopologyManagerScope",
    		"TopologyManagerPolicyOptions[*]",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. pkg/features/kube_features.go

    	ClusterTrustBundleProjection featuregate.Feature = "ClusterTrustBundleProjection"
    
    	// owner: @szuecs
    	// alpha: v1.12
    	//
    	// Enable nodes to change CPUCFSQuotaPeriod
    	CPUCFSQuotaPeriod featuregate.Feature = "CustomCPUCFSQuotaPeriod"
    
    	// owner: @ConnorDoyle, @fromanirh (only for GA graduation)
    	// alpha: v1.8
    	// beta: v1.10
    	// GA: v1.26
    	//
    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. pkg/kubelet/kuberuntime/helpers_linux_test.go

    			}
    		})
    	}
    }
    
    func TestMilliCPUToQuotaWithCustomCPUCFSQuotaPeriod(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CPUCFSQuotaPeriod, true)
    
    	for _, testCase := range []struct {
    		msg      string
    		input    int64
    		expected int64
    		period   uint64
    	}{
    		{
    			msg:      "all-zero",
    			input:    int64(0),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/helpers_linux_test.go

    	tunedQuota := int64(1 * time.Millisecond / time.Microsecond)
    
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.CPUCFSQuotaPeriod, true)
    
    	minShares := uint64(MinShares)
    	burstableShares := MilliCPUToShares(100)
    	memoryQuantity := resource.MustParse("200Mi")
    	burstableMemory := memoryQuantity.Value()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. cmd/kubelet/app/options/options.go

    	fs.BoolVar(&c.CPUCFSQuota, "cpu-cfs-quota", c.CPUCFSQuota, "Enable CPU CFS quota enforcement for containers that specify CPU limits")
    	fs.DurationVar(&c.CPUCFSQuotaPeriod.Duration, "cpu-cfs-quota-period", c.CPUCFSQuotaPeriod.Duration, "Sets CPU CFS quota period value, cpu.cfs_period_us, defaults to Linux Kernel default")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:05 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  10. cmd/kubelet/app/server.go

    				ExperimentalMemoryManagerReservedMemory: s.ReservedMemory,
    				PodPidsLimit:                            s.PodPidsLimit,
    				EnforceCPULimits:                        s.CPUCFSQuota,
    				CPUCFSQuotaPeriod:                       s.CPUCFSQuotaPeriod.Duration,
    				TopologyManagerPolicy:                   s.TopologyManagerPolicy,
    				TopologyManagerScope:                    s.TopologyManagerScope,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
Back to top