Skip to content

Commit d425353

Browse files
committed
DRA scheduler: reduce verbosity of queuing hints
Other hints also only use V(5) or higher.
1 parent 4a265fe commit d425353

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ func (pl *dynamicResources) isSchedulableAfterClaimChange(logger klog.Logger, po
479479
}
480480

481481
if originalClaim == nil {
482-
logger.V(4).Info("claim for pod got created", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
482+
logger.V(5).Info("claim for pod got created", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
483483
return framework.Queue, nil
484484
}
485485

@@ -497,7 +497,7 @@ func (pl *dynamicResources) isSchedulableAfterClaimChange(logger klog.Logger, po
497497
return framework.QueueSkip, nil
498498
}
499499

500-
logger.V(4).Info("status of claim for pod got updated", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
500+
logger.V(5).Info("status of claim for pod got updated", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
501501
return framework.Queue, nil
502502
}
503503

@@ -569,7 +569,7 @@ func (pl *dynamicResources) isSchedulableAfterPodSchedulingContextChange(logger
569569
// Deleted? That can happen because we ourselves delete the PodSchedulingContext while
570570
// working on the pod. This can be ignored.
571571
if oldObj != nil && newObj == nil {
572-
logger.V(4).Info("PodSchedulingContext got deleted")
572+
logger.V(5).Info("PodSchedulingContext got deleted")
573573
return framework.QueueSkip, nil
574574
}
575575

@@ -600,7 +600,7 @@ func (pl *dynamicResources) isSchedulableAfterPodSchedulingContextChange(logger
600600
// This is not an unexpected error: we know that
601601
// foreachPodResourceClaim only returns errors for "not
602602
// schedulable".
603-
logger.V(4).Info("pod is not schedulable, keep waiting", "pod", klog.KObj(pod), "reason", err.Error())
603+
logger.V(5).Info("pod is not schedulable, keep waiting", "pod", klog.KObj(pod), "reason", err.Error())
604604
return framework.QueueSkip, nil
605605
}
606606

@@ -621,7 +621,7 @@ func (pl *dynamicResources) isSchedulableAfterPodSchedulingContextChange(logger
621621
if oldPodScheduling == nil /* create */ ||
622622
len(oldPodScheduling.Status.ResourceClaims) < len(podScheduling.Status.ResourceClaims) /* new information and not incomplete (checked above) */ {
623623
// This definitely is new information for the scheduler. Try again immediately.
624-
logger.V(4).Info("PodSchedulingContext for pod has all required information, schedule immediately", "pod", klog.KObj(pod))
624+
logger.V(5).Info("PodSchedulingContext for pod has all required information, schedule immediately", "pod", klog.KObj(pod))
625625
return framework.Queue, nil
626626
}
627627

0 commit comments

Comments
 (0)