mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Merge pull request #16823 from yujuhong/sync_logging
kublet: reduce logging frequency for sync loop
This commit is contained in:
commit
2041297ade
@ -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