mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
Merge pull request #3554 from fgiudici/stable-2.3_monitor_sync
stable-2.3 | kata-monitor: increase delay before syncing with the container manager
This commit is contained in:
commit
04426d65ba
@ -24,7 +24,7 @@ const (
|
||||
RuntimeContainerd = "containerd"
|
||||
RuntimeCRIO = "cri-o"
|
||||
fsMonitorRetryDelaySeconds = 60
|
||||
podCacheRefreshDelaySeconds = 5
|
||||
podCacheRefreshDelaySeconds = 60
|
||||
)
|
||||
|
||||
// SetLogger sets the logger for katamonitor package.
|
||||
@ -85,7 +85,7 @@ func (km *KataMonitor) startPodCacheUpdater() {
|
||||
break
|
||||
}
|
||||
// we refresh the pod cache once if we get multiple add/delete pod events in a short time (< podCacheRefreshDelaySeconds)
|
||||
cacheUpdateTimer := time.NewTimer(podCacheRefreshDelaySeconds * time.Second)
|
||||
cacheUpdateTimer := time.NewTimer(5 * time.Second)
|
||||
cacheUpdateTimerWasSet := false
|
||||
for {
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user