Achilleas Tzenetopoulos %!s(int64=5) %!d(string=hai) anos
pai
achega
27fd595af1

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -122,7 +122,7 @@ func customScoreInfluxDB(metrics []string, uuid string, socket,
 func customResourceScorer(nodeName string) (float64, error) {
 
 	//InvalidateCache()
-	klog.Infof("The value of the Ticker: %v", customcache.LabCache.Timeout.C)
+	//klog.Infof("The value of the Ticker: %v", customcache.LabCache.Timeout.C)
 	cores, _ := Cores[nodeName]
 
 	var results map[string]float64

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/customcache/cache.go

@@ -124,7 +124,7 @@ func (c *MlabCache) CleanCache() {
 			"c6res":     -1,
 		},
 	}
-	c.Timeout.Stop()
+	//c.Timeout.Stop()
 	//Timeout := time.NewTicker(time.Duration(10 * time.Second))
 	c.Mux.Unlock()
 }

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/scheduler.go

@@ -454,7 +454,7 @@ func (sched *Scheduler) scheduleOne() {
 	// }
 
 	// Check if the cache needs update
-	klog.Infof("The value of the Ticker: %v", customcache.LabCache.Timeout.C)
+	//klog.Infof("The value of the Ticker: %v", customcache.LabCache.Timeout.C)
 	select {
 	// clean the cache if 10 seconds are passed
 	case <-customcache.LabCache.Timeout.C: