mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Add energy footprint
This commit is contained in:
parent
ac9bba8b5b
commit
c6ede67589
@ -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 {
|
||||||
|
2318
pkg/archive/testdata/archive/alex/cluster.json
vendored
2318
pkg/archive/testdata/archive/alex/cluster.json
vendored
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
@ -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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user