Achilleas Tzenetopoulos 5 роки тому
батько
коміт
13aef3af5a

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

@@ -97,7 +97,8 @@ func customScoreInfluxDB(metrics []string, uuid string, socket,
 	var command strings.Builder
 	fmt.Fprintf(&command, "SELECT %s from socket_metrics where uuid = '%s' and socket_id='%d' order by time desc limit %d", columns, uuid, socket, numberOfRows)
 	klog.Infof("%s", command)
-	q := client.NewQuery(command.String(), cfg.Database.Name, "")
+	q := client.NewQuery("select ipc from system_metrics", "evolve", "")
+	//q := client.NewQuery(command.String(), cfg.Database.Name, "")
 	response, err := c.Query(q)
 	if err != nil {
 		klog.Infof("Error while executing the query: %v", err.Error())