mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-19 08:28:19 +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"
|
RuntimeContainerd = "containerd"
|
||||||
RuntimeCRIO = "cri-o"
|
RuntimeCRIO = "cri-o"
|
||||||
fsMonitorRetryDelaySeconds = 60
|
fsMonitorRetryDelaySeconds = 60
|
||||||
podCacheRefreshDelaySeconds = 5
|
podCacheRefreshDelaySeconds = 60
|
||||||
)
|
)
|
||||||
|
|
||||||
// SetLogger sets the logger for katamonitor package.
|
// SetLogger sets the logger for katamonitor package.
|
||||||
@ -85,7 +85,7 @@ func (km *KataMonitor) startPodCacheUpdater() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
// we refresh the pod cache once if we get multiple add/delete pod events in a short time (< podCacheRefreshDelaySeconds)
|
// 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
|
cacheUpdateTimerWasSet := false
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user