From b3a67abec73efa8539e9efb7ddb71fb155b841d9 Mon Sep 17 00:00:00 2001 From: Mark Rossetti Date: Mon, 13 Mar 2023 12:13:24 -0700 Subject: [PATCH] Updating perfCounterUpdatePerioud for Windows to 10 seconds Signed-off-by: Mark Rossetti --- pkg/kubelet/winstats/perfcounters.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/winstats/perfcounters.go b/pkg/kubelet/winstats/perfcounters.go index 4296684ff21..4b483d41d86 100644 --- a/pkg/kubelet/winstats/perfcounters.go +++ b/pkg/kubelet/winstats/perfcounters.go @@ -32,9 +32,9 @@ const ( cpuQuery = "\\Processor(_Total)\\% Processor Time" memoryPrivWorkingSetQuery = "\\Process(_Total)\\Working Set - Private" memoryCommittedBytesQuery = "\\Memory\\Committed Bytes" - // Perf counters are updated every second. This is the same as the default cadvisor collection period - // see https://github.com/google/cadvisor/blob/master/docs/runtime_options.md#housekeeping - perfCounterUpdatePeriod = 1 * time.Second + // Perf counters are updated 10 seconds. This is the same as the default cadvisor housekeeping interval + // set at https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/cadvisor/cadvisor_linux.go + perfCounterUpdatePeriod = 10 * time.Second // defaultCachePeriod is the default cache period for each cpuUsage. // This matches with the cadvisor setting and the time interval we use for containers. // see https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/cadvisor/cadvisor_linux.go#L63