Add energy footprint

This commit is contained in:
Jan Eitzinger 2024-07-05 16:16:01 +02:00
parent ac9bba8b5b
commit c6ede67589
Signed by: moebiusband
GPG Key ID: 2574BA29B90D6DD5
4 changed files with 2794 additions and 501 deletions

View File

@ -40,7 +40,6 @@ type JobLink {
type Cluster { type Cluster {
name: String! name: String!
partitions: [String!]! # Slurm partitions partitions: [String!]! # Slurm partitions
metricConfig: [MetricConfig!]!
subClusters: [SubCluster!]! # Hardware partitions/subclusters subClusters: [SubCluster!]! # Hardware partitions/subclusters
} }
@ -56,6 +55,8 @@ type SubCluster {
flopRateSimd: MetricValue! flopRateSimd: MetricValue!
memoryBandwidth: MetricValue! memoryBandwidth: MetricValue!
topology: Topology! topology: Topology!
metricConfig: [MetricConfig!]!
footprint: [String!]!
} }
type MetricValue { type MetricValue {

File diff suppressed because it is too large Load Diff

View File

@ -252,7 +252,8 @@
"peak": 500, "peak": 500,
"normal": 250, "normal": 250,
"caution": 100, "caution": 100,
"alert": 50 "alert": 50,
"energy": true
}, },
{ {
"name": "mem_power", "name": "mem_power",
@ -265,7 +266,8 @@
"peak": 100, "peak": 100,
"normal": 50, "normal": 50,
"caution": 20, "caution": 20,
"alert": 10 "alert": 10,
"energy": true
}, },
{ {
"name": "ipc", "name": "ipc",

View File

@ -23,11 +23,13 @@ type BaseJob struct {
User string `json:"user" db:"user" example:"abcd100h"` User string `json:"user" db:"user" example:"abcd100h"`
State JobState `json:"jobState" db:"job_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"` State JobState `json:"jobState" db:"job_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"`
Tags []*Tag `json:"tags,omitempty"` Tags []*Tag `json:"tags,omitempty"`
RawEnergyFootprint []byte `json:"-" db:"energy_footprint"`
RawFootprint []byte `json:"-" db:"footprint"` RawFootprint []byte `json:"-" db:"footprint"`
RawMetaData []byte `json:"-" db:"meta_data"` RawMetaData []byte `json:"-" db:"meta_data"`
RawResources []byte `json:"-" db:"resources"` RawResources []byte `json:"-" db:"resources"`
Resources []*Resource `json:"resources"` Resources []*Resource `json:"resources"`
Footprint map[string]float64 `json:"footPrint"` EnergyFootprint map[string]float64 `json:"energyFootprint"`
Footprint map[string]float64 `json:"footprint"`
MetaData map[string]string `json:"metaData"` MetaData map[string]string `json:"metaData"`
ConcurrentJobs JobLinkResultList `json:"concurrentJobs"` ConcurrentJobs JobLinkResultList `json:"concurrentJobs"`
Energy float64 `json:"energy"` Energy float64 `json:"energy"`