improve the log message to clarify the cause of the failure

This commit is contained in:
@saza-ku
2025-06-30 18:27:55 +09:00
parent a6e2cd4e8d
commit 08dd9c47b3

View File

@@ -648,7 +648,7 @@ func (tc *throughputCollector) collect() []DataItem {
// tc.schedulingThroughputs can be empty if the scenario doesn't have
// enough number of pods and nodes to take more than throughputSampleInterval (i.e. 1 second).
if throughputSummary.Data == nil {
klog.Warningf("Failed to measure SchedulingThroughput for %s. You would need to increase the number of pods and nodes.", tc.resultLabels["Name"])
klog.Warningf("Failed to measure SchedulingThroughput for %s. The scenario needs to have enough pods and nodes to take more than 1 second.", tc.resultLabels["Name"])
}
return []DataItem{throughputSummary}