- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for cpuCFSQuotaPeriod (0.28 sec)
-
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) -
pkg/kubelet/apis/config/validation/validation_test.go
}, { name: "invalid CPUCFSQuotaPeriod", configure: func(conf *kubeletconfig.KubeletConfiguration) *kubeletconfig.KubeletConfiguration { conf.FeatureGates = map[string]bool{"CustomCPUCFSQuotaPeriod": true} conf.CPUCFSQuotaPeriod = metav1.Duration{Duration: 2 * time.Second} return conf },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 21:10:42 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/kubelet/cm/pod_container_manager_linux.go
// Maximum number of pids in a pod podPidsLimit int64 // enforceCPULimits controls whether cfs quota is enforced or not enforceCPULimits bool // cpuCFSQuotaPeriod is the cfs period value, cfs_period_us, setting per // node for all containers in usec cpuCFSQuotaPeriod uint64 } // Make sure that podContainerManagerImpl implements the PodContainerManager interface var _ PodContainerManager = &podContainerManagerImpl{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 16:38:36 UTC 2023 - 12.5K bytes - Viewed (0) -
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) -
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) -
pkg/kubelet/apis/config/zz_generated.deepcopy.go
*out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.CPUCFSQuotaPeriod = in.CPUCFSQuotaPeriod if in.MaxParallelImagePulls != nil { in, out := &in.MaxParallelImagePulls, &out.MaxParallelImagePulls *out = new(int32) **out = **in } if in.EvictionHard != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 09 11:19:11 UTC 2024 - 14.6K bytes - Viewed (0) -
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) -
pkg/kubelet/cm/helpers_linux.go
// see https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt for details if milliCPU == 0 { return } if !utilfeature.DefaultFeatureGate.Enabled(kubefeatures.CPUCFSQuotaPeriod) { period = QuotaPeriod } // we then convert your milliCPU to a value normalized over a period quota = (milliCPU * period) / MilliCPUToCPU // quota needs to be a minimum of 1ms.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 11:52:28 UTC 2023 - 9.8K bytes - Viewed (0) -
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) -
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)