Browse Source

added socket insight

Achilleas Tzenetopoulos 5 years ago
parent
commit
ef30e2a168

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

@@ -46,14 +46,14 @@ type Config struct {
 		Host string `yaml:"host"`
 	} `yaml:"server"`
 	Database struct {
-		Type     string `yaml: "type"`
+		Type     string `yaml:"type"`
 		Name     string `yaml:"name"`
 		Username string `yaml:"username"`
 		Password string `yaml:"password"`
 	} `yaml:"database"`
 	MonitoringSpecs struct {
-		TimeInterval float32 `yaml: "interval"`
-	} `yaml: "monitoring"`
+		TimeInterval float32 `yaml:"interval"`
+	} `yaml:"monitoring"`
 }
 
 // type Row struct {
@@ -64,12 +64,12 @@ type Config struct {
 // 	c6res  float32
 // }
 
-type System struct {
-	ID         int    `json:"id"`
-	Uuid       string `json:"uuid"`
-	numSockets int    `json:"num_sockets"`
-	numCores   int    `json:"num_cores`
-}
+// type System struct {
+// 	ID         int    `json:"id"`
+// 	Uuid       string `json:"uuid"`
+// 	numSockets int    `json:"num_sockets"`
+// 	numCores   int    `json:"num_cores`
+// }
 
 var nodes = map[string]string{
 	"kube-01": "c4766d29-4dc1-11ea-9d98-0242ac110002",