You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current waitForStepsToFinish implementation is a classic busy-wait.
It checks for file existence without any sleep, resulting in a high
CPU usage. Adding a profile with a unit test to show that almost all
time is spent in system calls with a high total sample count. This led to
execssive CPU usage by the sidecar even when just waiting.
The function now sleeps 100ms between checks, drastically reducing the
frequency. The sidecar now uses minimal CPU while waiting.
Signed-off-by: Priti Desai <pdesai@us.ibm.com>
// DefaultSidecarLogPollingInterval specifies how frequently (as a time.Duration) the Tekton sidecar log results container polls for step completion files.
95
+
// This value is loaded from the 'sidecar-log-polling-interval' key in the config-defaults ConfigMap.
96
+
// It is used to control the responsiveness and resource usage of the sidecar in both production and test environments.
97
+
DefaultSidecarLogPollingInterval time.Duration
91
98
}
92
99
93
100
// GetDefaultsConfigName returns the name of the configmap containing all
0 commit comments