|
@@ -222,7 +222,7 @@ func (g *genericScheduler) Schedule(pod *v1.Pod, nodeLister algorithm.NodeLister
|
|
|
metrics.DeprecatedSchedulingLatency.WithLabelValues(metrics.PredicateEvaluation).Observe(metrics.SinceInSeconds(startPredicateEvalTime))
|
|
|
|
|
|
|
|
|
- trace.Step("Prioritizing Sockets")
|
|
|
+
|
|
|
|
|
|
startPriorityEvalTime := time.Now()
|
|
|
|
|
@@ -243,6 +243,18 @@ func (g *genericScheduler) Schedule(pod *v1.Pod, nodeLister algorithm.NodeLister
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+ select {
|
|
|
+
|
|
|
+ case <-customcache.LabCache.Timeout.C:
|
|
|
+ klog.Infof("Time to erase: %v", time.Now())
|
|
|
+
|
|
|
+ customcache.LabCache.CleanCache()
|
|
|
+ klog.Infof("Cache: %v", customcache.LabCache.Cache)
|
|
|
+ default:
|
|
|
+ klog.Infof("Cache is Valid, Time: %v", customcache.LabCache.Timeout.C)
|
|
|
+ }
|
|
|
+
|
|
|
socketPrioritizers := []priorities.PriorityConfig{
|
|
|
{
|
|
|
Name: priorities.CustomRequestedPriority,
|