mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
kubelet: reduce logging frequency for sync loop
Only logs when there are pods to sync.
This commit is contained in:
parent
4711a87323
commit
5863f2a0a5
@ -2125,7 +2125,10 @@ func (kl *Kubelet) syncLoopIteration(updates <-chan kubetypes.PodUpdate, handler
|
|||||||
podsToSync = append(podsToSync, pod)
|
podsToSync = append(podsToSync, pod)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
glog.V(2).Infof("SyncLoop (SYNC): %d pods", kubeletutil.FormatPodNames(podsToSync))
|
if len(podsToSync) == 0 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
glog.V(4).Infof("SyncLoop (SYNC): %d pods; %s", len(podsToSync), kubeletutil.FormatPodNames(podsToSync))
|
||||||
kl.HandlePodSyncs(podsToSync)
|
kl.HandlePodSyncs(podsToSync)
|
||||||
case update := <-kl.livenessManager.Updates():
|
case update := <-kl.livenessManager.Updates():
|
||||||
// We only care about failures (signalling container death) here.
|
// We only care about failures (signalling container death) here.
|
||||||
|
Loading…
Reference in New Issue
Block a user