mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 10:18:13 +00:00 
			
		
		
		
	[scheduler] Use V(10) for anything which may be O(N*P) logging
This commit is contained in:
		| @@ -52,7 +52,7 @@ func (pfactory *PredicateMetadataFactory) GetMetadata(pod *v1.Pod, nodeNameToInf | ||||
| 		matchingAntiAffinityTerms: matchingTerms, | ||||
| 	} | ||||
| 	for predicateName, precomputeFunc := range predicatePrecomputations { | ||||
| 		glog.V(4).Info("Precompute: %v", predicateName) | ||||
| 		glog.V(10).Info("Precompute: %v", predicateName) | ||||
| 		precomputeFunc(predicateMetadata) | ||||
| 	} | ||||
| 	return predicateMetadata | ||||
|   | ||||
| @@ -417,7 +417,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta interface{}, nodeInfo *s | ||||
| 				} | ||||
| 				nodeV, _ := nodeConstraints[k] | ||||
| 				if v != nodeV { | ||||
| 					glog.V(2).Infof("Won't schedule pod %q onto node %q due to volume %q (mismatch on %q)", pod.Name, node.Name, pvName, k) | ||||
| 					glog.V(10).Infof("Won't schedule pod %q onto node %q due to volume %q (mismatch on %q)", pod.Name, node.Name, pvName, k) | ||||
| 					return false, []algorithm.PredicateFailureReason{ErrVolumeZoneConflict}, nil | ||||
| 				} | ||||
| 			} | ||||
|   | ||||
| @@ -49,7 +49,7 @@ func calculateUnusedScore(requested int64, capacity int64, node string) int64 { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	if requested > capacity { | ||||
| 		glog.V(4).Infof("Combined requested resources %d from existing pods exceeds capacity %d on node %s", | ||||
| 		glog.V(10).Infof("Combined requested resources %d from existing pods exceeds capacity %d on node %s", | ||||
| 			requested, capacity, node) | ||||
| 		return 0 | ||||
| 	} | ||||
|   | ||||
| @@ -53,7 +53,7 @@ func calculateUsedScore(requested int64, capacity int64, node string) int64 { | ||||
| 		return 0 | ||||
| 	} | ||||
| 	if requested > capacity { | ||||
| 		glog.V(4).Infof("Combined requested resources %d from existing pods exceeds capacity %d on node %s", | ||||
| 		glog.V(10).Infof("Combined requested resources %d from existing pods exceeds capacity %d on node %s", | ||||
| 			requested, capacity, node) | ||||
| 		return 0 | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jayunit100
					jayunit100