mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 18:52:38 +00:00
change CPUCFSQuotaPeriod default value to 100us to match Linux default
cpu.cfs_period_us is 100μs by default despite having an "ms" unit for some unfortunate reason. Documentation: https://www.kernel.org/doc/html/latest/scheduler/sched-bwc.html#management The desired effect of that change is to match k8s default `CPUCFSQuotaPeriod` value (100ms before that change) with one used in k8s without the `CustomCPUCFSQuotaPeriod` flag enabled and Linux CFS (100us, 1000x smaller than 100ms).
This commit is contained in:
@@ -19,7 +19,7 @@ containerLogMaxFiles: 5
|
|||||||
containerLogMaxSize: 10Mi
|
containerLogMaxSize: 10Mi
|
||||||
contentType: application/vnd.kubernetes.protobuf
|
contentType: application/vnd.kubernetes.protobuf
|
||||||
cpuCFSQuota: true
|
cpuCFSQuota: true
|
||||||
cpuCFSQuotaPeriod: 100us
|
cpuCFSQuotaPeriod: 100ms
|
||||||
cpuManagerPolicy: none
|
cpuManagerPolicy: none
|
||||||
cpuManagerReconcilePeriod: 10s
|
cpuManagerReconcilePeriod: 10s
|
||||||
enableControllerAttachDetach: true
|
enableControllerAttachDetach: true
|
||||||
|
@@ -19,7 +19,7 @@ containerLogMaxFiles: 5
|
|||||||
containerLogMaxSize: 10Mi
|
containerLogMaxSize: 10Mi
|
||||||
contentType: application/vnd.kubernetes.protobuf
|
contentType: application/vnd.kubernetes.protobuf
|
||||||
cpuCFSQuota: true
|
cpuCFSQuota: true
|
||||||
cpuCFSQuotaPeriod: 100us
|
cpuCFSQuotaPeriod: 100ms
|
||||||
cpuManagerPolicy: none
|
cpuManagerPolicy: none
|
||||||
cpuManagerReconcilePeriod: 10s
|
cpuManagerReconcilePeriod: 10s
|
||||||
enableControllerAttachDetach: true
|
enableControllerAttachDetach: true
|
||||||
|
@@ -147,7 +147,7 @@ func TestValidateKubeletConfiguration(t *testing.T) {
|
|||||||
conf.CPUCFSQuotaPeriod = metav1.Duration{Duration: 200 * time.Microsecond}
|
conf.CPUCFSQuotaPeriod = metav1.Duration{Duration: 200 * time.Microsecond}
|
||||||
return conf
|
return conf
|
||||||
},
|
},
|
||||||
errMsg: "invalid configuration: cpuCFSQuotaPeriod (--cpu-cfs-quota-period) {200us} requires feature gate CustomCPUCFSQuotaPeriod",
|
errMsg: "invalid configuration: cpuCFSQuotaPeriod (--cpu-cfs-quota-period) {200µs} requires feature gate CustomCPUCFSQuotaPeriod",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "invalid CPUCFSQuotaPeriod",
|
name: "invalid CPUCFSQuotaPeriod",
|
||||||
|
Reference in New Issue
Block a user