mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
[scheduler] Use V(10) for anything which may be O(N*P) logging
This commit is contained in:
parent
545f749a0d
commit
7c94c51860
@ -52,7 +52,7 @@ func (pfactory *PredicateMetadataFactory) GetMetadata(pod *v1.Pod, nodeNameToInf
|
|||||||
matchingAntiAffinityTerms: matchingTerms,
|
matchingAntiAffinityTerms: matchingTerms,
|
||||||
}
|
}
|
||||||
for predicateName, precomputeFunc := range predicatePrecomputations {
|
for predicateName, precomputeFunc := range predicatePrecomputations {
|
||||||
glog.V(4).Info("Precompute: %v", predicateName)
|
glog.V(10).Info("Precompute: %v", predicateName)
|
||||||
precomputeFunc(predicateMetadata)
|
precomputeFunc(predicateMetadata)
|
||||||
}
|
}
|
||||||
return predicateMetadata
|
return predicateMetadata
|
||||||
|
@ -417,7 +417,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta interface{}, nodeInfo *s
|
|||||||
}
|
}
|
||||||
nodeV, _ := nodeConstraints[k]
|
nodeV, _ := nodeConstraints[k]
|
||||||
if v != nodeV {
|
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
|
return false, []algorithm.PredicateFailureReason{ErrVolumeZoneConflict}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ func calculateUnusedScore(requested int64, capacity int64, node string) int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
if requested > capacity {
|
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)
|
requested, capacity, node)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ func calculateUsedScore(requested int64, capacity int64, node string) int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
if requested > capacity {
|
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)
|
requested, capacity, node)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user