소스 검색

some logging

Achilleas Tzenetopoulos 5 년 전
부모
커밋
cac24d3217
1개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 9 6
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

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

@@ -61,10 +61,13 @@ type System struct {
 
 var nodes = map[string]string{
 	"kube-01": "c4766d29-4dc1-11ea-9d98-0242ac110002",
-	"kube-02": "2",
-	"kube-03": "2",
-	"kube-04": "2",
-	"kube-05": "2",
+	"kube-02": "c4766d29-4dc1-11ea-9d98-0242ac110002",
+	"kube-03": "c4766d29-4dc1-11ea-9d98-0242ac110002",
+	"kube-04": "c4766d29-4dc1-11ea-9d98-0242ac110002",
+	"kube-05": "c4766d29-4dc1-11ea-9d98-0242ac110002",
+	"kube-06": "c4766d29-4dc1-11ea-9d98-0242ac110002",
+	"kube-07": "c4766d29-4dc1-11ea-9d98-0242ac110002",
+	"kube-08": "c4766d29-4dc1-11ea-9d98-0242ac110002",
 }
 
 func readFile(cfg *Config, file string) {
@@ -108,8 +111,8 @@ func customResourceScorer(nodeName string) int64 {
 	} else {
 		klog.Infof("Connected Successfully to InfluxDB")
 	}
-
 	// close the connection in the end of execution
+
 	defer c.Close()
 
 	//Get the uuid of this node in order to query in the database
@@ -122,7 +125,7 @@ func customResourceScorer(nodeName string) int64 {
 			klog.Infof("%v", response.Results)
 		}
 	} else {
-		klog.Infof("Something went wrong with InfluxDB metrics extraction: %v", ok)
+		klog.Infof("Error finding the uuid: %v", ok)
 	}
 
 	// //Close the database connection in the end of the execution