mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	kubelet: reduce logging frequency for sync loop
Only logs when there are pods to sync.
This commit is contained in:
		@@ -2125,7 +2125,10 @@ func (kl *Kubelet) syncLoopIteration(updates <-chan kubetypes.PodUpdate, handler
 | 
			
		||||
				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)
 | 
			
		||||
	case update := <-kl.livenessManager.Updates():
 | 
			
		||||
		// We only care about failures (signalling container death) here.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user