|
@@ -2,6 +2,7 @@ package priorities
|
|
|
|
|
|
import (
|
|
|
"os"
|
|
|
+ "time"
|
|
|
|
|
|
client "github.com/influxdata/influxdb1-client/v2"
|
|
|
"gopkg.in/yaml.v2"
|
|
@@ -29,7 +30,132 @@ type Config struct {
|
|
|
} `yaml:"monitoring"`
|
|
|
}
|
|
|
|
|
|
-var nodes = map[string]string{
|
|
|
+type Application struct {
|
|
|
+ Metrics map[string]float64
|
|
|
+ Duration time.Duration
|
|
|
+}
|
|
|
+
|
|
|
+var Applications = map[string]Application{
|
|
|
+ "scikit-lasso": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.87,
|
|
|
+ "mem_read": 0.1753,
|
|
|
+ "mem_write": 0.008856,
|
|
|
+ "c6res": 0.003058,
|
|
|
+ },
|
|
|
+ Duration: 69 * time.Second,
|
|
|
+ },
|
|
|
+ "scikit-ada": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.10,
|
|
|
+ "mem_read": 0.09868,
|
|
|
+ "mem_write": 0.00669,
|
|
|
+ "c6res": 0,
|
|
|
+ },
|
|
|
+ Duration: 138 * time.Second,
|
|
|
+ },
|
|
|
+ "scikit-rfr": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.25,
|
|
|
+ "mem_read": 0.0228,
|
|
|
+ "mem_write": 0.00503,
|
|
|
+ "c6res": 0,
|
|
|
+ },
|
|
|
+ Duration: 115 * time.Second,
|
|
|
+ },
|
|
|
+ "scikit-rfc": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.802,
|
|
|
+ "mem_read": 0.02423,
|
|
|
+ "mem_write": 0.010603,
|
|
|
+ "c6res": 0,
|
|
|
+ },
|
|
|
+ Duration: 38 * time.Second,
|
|
|
+ },
|
|
|
+ "scikit-linregr": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.9464,
|
|
|
+ "mem_read": 0.040475,
|
|
|
+ "mem_write": 0.01974,
|
|
|
+ "c6res": 0.00928149,
|
|
|
+ },
|
|
|
+ Duration: 45 * time.Second,
|
|
|
+ },
|
|
|
+ "scikit-lda": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.9162,
|
|
|
+ "mem_read": 0.0541,
|
|
|
+ "mem_write": 0.029381,
|
|
|
+ "c6res": 0.003805,
|
|
|
+ },
|
|
|
+ Duration: 53 * time.Second,
|
|
|
+ },
|
|
|
+ "cloudsuite-data-serving-client": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 0.6619,
|
|
|
+ "mem_read": 0,
|
|
|
+ "mem_write": 0,
|
|
|
+ "c6res": 44.48,
|
|
|
+ },
|
|
|
+ Duration: 72 * time.Second,
|
|
|
+ },
|
|
|
+ "cloudsuite-in-memory-analytics": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.3399,
|
|
|
+ "mem_read": 0.0052142,
|
|
|
+ "mem_write": 0.61361,
|
|
|
+ "c6res": 3.76196,
|
|
|
+ },
|
|
|
+ Duration: 60 * time.Second,
|
|
|
+ },
|
|
|
+ "cloudsuite-web-serving-client": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 0.6619,
|
|
|
+ "mem_read": 0,
|
|
|
+ "mem_write": 0,
|
|
|
+ "c6res": 44.48,
|
|
|
+ },
|
|
|
+ Duration: 203 * time.Second,
|
|
|
+ },
|
|
|
+ "spec-sphinx": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 2.035,
|
|
|
+ "mem_read": 0.0042372,
|
|
|
+ "mem_write": 0.0021131,
|
|
|
+ "c6res": 0.07497,
|
|
|
+ },
|
|
|
+ Duration: 592 * time.Second,
|
|
|
+ },
|
|
|
+ "spec-cactus": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.353,
|
|
|
+ "mem_read": 0.07105,
|
|
|
+ "mem_write": 0.0273161,
|
|
|
+ "c6res": 0.0532267,
|
|
|
+ },
|
|
|
+ Duration: 780 * time.Second,
|
|
|
+ },
|
|
|
+ "spec-astar": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 0.86314,
|
|
|
+ "mem_read": 0.0063,
|
|
|
+ "mem_write": 0.0032874,
|
|
|
+ "c6res": 0.09115,
|
|
|
+ },
|
|
|
+ Duration: 468 * time.Second,
|
|
|
+ },
|
|
|
+ "spec-leslie": Application{
|
|
|
+ Metrics: map[string]float64{
|
|
|
+ "ipc": 1.5225,
|
|
|
+ "mem_read": 0.3221,
|
|
|
+ "mem_write": 0.1532,
|
|
|
+ "c6res": 0.1215,
|
|
|
+ },
|
|
|
+ Duration: 378 * time.Second,
|
|
|
+ },
|
|
|
+}
|
|
|
+
|
|
|
+var Nodes = map[string]string{
|
|
|
"kube-01": "e77467ad-636e-4e7e-8bc9-53e46ae51da1",
|
|
|
"kube-02": "e77467ad-636e-4e7e-8bc9-53e46ae51da1",
|
|
|
"kube-03": "e77467ad-636e-4e7e-8bc9-53e46ae51da1",
|
|
@@ -45,7 +171,7 @@ var links = map[string][]float32{
|
|
|
"c4766d29-4dc1-11ea-9d98-0242ac110002": []float32{2, 9.6},
|
|
|
}
|
|
|
|
|
|
-var sockets = map[string]int{
|
|
|
+var Sockets = map[string]int{
|
|
|
"kube-01": 1,
|
|
|
"kube-02": 0,
|
|
|
"kube-03": 0,
|
|
@@ -56,7 +182,7 @@ var sockets = map[string]int{
|
|
|
"kube-08": 1,
|
|
|
}
|
|
|
|
|
|
-var cores = map[string][]int{
|
|
|
+var Cores = map[string][]int{
|
|
|
"kube-01": []int{20, 21, 22, 23},
|
|
|
"kube-02": []int{2, 3, 4, 5, 6, 7, 8, 9},
|
|
|
"kube-03": []int{40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55},
|