2021-03-31 07:23:48 +02:00
|
|
|
type Job {
|
2021-12-16 13:17:48 +01:00
|
|
|
Id: ID! # Database ID, unique
|
|
|
|
JobId: Int! # ID given to the job by the cluster scheduler
|
|
|
|
User: String! # Username
|
|
|
|
Project: String! # Project
|
|
|
|
Cluster: String! # Name of the cluster this job was running on
|
|
|
|
StartTime: Time! # RFC3339 formated string
|
|
|
|
Duration: Int! # For running jobs, the time it has already run
|
|
|
|
NumNodes: Int! # Number of nodes this job was running on
|
|
|
|
NumHWThreads: Int!
|
|
|
|
NumAcc: Int!
|
|
|
|
SMT: Int!
|
|
|
|
Exclusive: Int!
|
|
|
|
Partition: String!
|
|
|
|
ArrayJobId: Int!
|
|
|
|
MonitoringStatus: Int!
|
|
|
|
State: JobState! # State of the job
|
|
|
|
Tags: [JobTag!]! # List of tags this job has
|
|
|
|
Resources: [JobResource!]! # List of hosts/hwthreads/gpus/...
|
2021-10-26 10:22:02 +02:00
|
|
|
|
|
|
|
# Will be null for running jobs.
|
2021-12-16 13:17:48 +01:00
|
|
|
LoadAvg: Float
|
|
|
|
MemUsedMax: Float
|
|
|
|
FlopsAnyAvg: Float
|
|
|
|
MemBwAvg: Float
|
|
|
|
NetBwAvg: Float
|
|
|
|
FileBwAvg: Float
|
|
|
|
}
|
|
|
|
|
|
|
|
type JobResource {
|
|
|
|
Hostname: String!
|
|
|
|
HWThreads: [Int!]
|
|
|
|
Accelerators: [Accelerator!]
|
|
|
|
}
|
|
|
|
|
|
|
|
type Accelerator {
|
|
|
|
Id: String!
|
|
|
|
Type: String!
|
|
|
|
Model: String!
|
2021-10-26 10:22:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# TODO: Extend by more possible states?
|
|
|
|
enum JobState {
|
|
|
|
running
|
|
|
|
completed
|
2021-12-16 13:17:48 +01:00
|
|
|
failed
|
|
|
|
canceled
|
|
|
|
stopped
|
|
|
|
timeout
|
2021-09-23 11:45:20 +02:00
|
|
|
}
|
2021-04-21 10:12:19 +02:00
|
|
|
|
2021-09-23 11:45:20 +02:00
|
|
|
type JobTag {
|
2021-12-16 13:17:48 +01:00
|
|
|
Id: ID! # Database ID, unique
|
|
|
|
TagType: String! # Type
|
|
|
|
TagName: String! # Name
|
2021-04-07 09:19:21 +02:00
|
|
|
}
|
|
|
|
|
2021-04-22 15:00:54 +02:00
|
|
|
type Cluster {
|
2021-12-16 13:17:48 +01:00
|
|
|
ClusterID: String!
|
|
|
|
ProcessorType: String!
|
|
|
|
SocketsPerNode: Int!
|
|
|
|
CoresPerSocket: Int!
|
|
|
|
ThreadsPerCore: Int!
|
|
|
|
FlopRateScalar: Int!
|
|
|
|
FlopRateSimd: Int!
|
|
|
|
MemoryBandwidth: Int!
|
|
|
|
MetricConfig: [MetricConfig!]!
|
|
|
|
FilterRanges: FilterRanges!
|
2021-04-22 15:00:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type MetricConfig {
|
2021-12-16 13:17:48 +01:00
|
|
|
Name: String!
|
|
|
|
Unit: String!
|
|
|
|
Timestep: Int!
|
|
|
|
Peak: Int!
|
|
|
|
Normal: Int!
|
|
|
|
Caution: Int!
|
|
|
|
Alert: Int!
|
|
|
|
Scope: String!
|
2021-04-22 15:00:54 +02:00
|
|
|
}
|
|
|
|
|
2021-04-07 09:19:21 +02:00
|
|
|
type JobMetric {
|
2021-12-16 13:17:48 +01:00
|
|
|
Unit: String!
|
|
|
|
Scope: JobMetricScope!
|
|
|
|
Timestep: Int!
|
|
|
|
Series: [JobMetricSeries!]!
|
2021-04-07 09:19:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type JobMetricSeries {
|
2021-12-16 13:17:48 +01:00
|
|
|
Hostname: String!
|
|
|
|
Id: Int
|
|
|
|
Statistics: JobMetricStatistics
|
|
|
|
Data: [NullableFloat!]!
|
2021-04-07 09:19:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type JobMetricStatistics {
|
2021-12-16 13:17:48 +01:00
|
|
|
Avg: Float!
|
|
|
|
Min: Float!
|
|
|
|
Max: Float!
|
2021-04-07 09:19:21 +02:00
|
|
|
}
|
|
|
|
|
2021-09-23 11:45:20 +02:00
|
|
|
type JobMetricWithName {
|
2021-10-26 10:22:02 +02:00
|
|
|
name: String!
|
2021-09-23 11:45:20 +02:00
|
|
|
metric: JobMetric!
|
2021-04-14 18:53:18 +02:00
|
|
|
}
|
|
|
|
|
2021-10-26 10:22:02 +02:00
|
|
|
type MetricFootprints {
|
|
|
|
name: String!
|
|
|
|
footprints: [NullableFloat!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Aggregate { USER, PROJECT, CLUSTER }
|
|
|
|
|
2021-12-09 16:25:48 +01:00
|
|
|
type NodeMetric {
|
|
|
|
name: String!
|
|
|
|
data: [NullableFloat!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeMetrics {
|
|
|
|
id: String!
|
|
|
|
metrics: [NodeMetric!]!
|
|
|
|
}
|
|
|
|
|
2021-03-31 07:23:48 +02:00
|
|
|
type Query {
|
2021-10-26 10:22:02 +02:00
|
|
|
clusters: [Cluster!]! # List of all clusters
|
|
|
|
tags: [JobTag!]! # List of all tags
|
|
|
|
|
|
|
|
job(id: ID!): Job
|
|
|
|
jobMetrics(id: ID!, metrics: [String!]): [JobMetricWithName!]!
|
|
|
|
jobsFootprints(filter: [JobFilter!], metrics: [String!]!): [MetricFootprints]!
|
|
|
|
|
|
|
|
jobs(filter: [JobFilter!], page: PageRequest, order: OrderByInput): JobResultList!
|
|
|
|
jobsStatistics(filter: [JobFilter!], groupBy: Aggregate): [JobsStatistics!]!
|
|
|
|
|
|
|
|
rooflineHeatmap(filter: [JobFilter!]!, rows: Int!, cols: Int!, minX: Float!, minY: Float!, maxX: Float!, maxY: Float!): [[Float!]!]!
|
2021-12-09 16:25:48 +01:00
|
|
|
|
|
|
|
nodeMetrics(cluster: ID!, nodes: [String!], metrics: [String!], from: Time!, to: Time!): [NodeMetrics!]!
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
2021-05-21 09:30:15 +02:00
|
|
|
type Mutation {
|
|
|
|
createTag(type: String!, name: String!): JobTag!
|
|
|
|
deleteTag(id: ID!): ID!
|
|
|
|
addTagsToJob(job: ID!, tagIds: [ID!]!): [JobTag!]!
|
|
|
|
removeTagsFromJob(job: ID!, tagIds: [ID!]!): [JobTag!]!
|
2021-09-23 11:45:20 +02:00
|
|
|
|
|
|
|
updateConfiguration(name: String!, value: String!): String
|
|
|
|
}
|
|
|
|
|
|
|
|
type IntRangeOutput {
|
|
|
|
from: Int!
|
2021-10-26 10:22:02 +02:00
|
|
|
to: Int!
|
2021-09-23 11:45:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type TimeRangeOutput {
|
|
|
|
from: Time!
|
2021-10-26 10:22:02 +02:00
|
|
|
to: Time!
|
2021-09-23 11:45:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type FilterRanges {
|
2021-10-26 10:22:02 +02:00
|
|
|
duration: IntRangeOutput!
|
|
|
|
numNodes: IntRangeOutput!
|
2021-09-23 11:45:20 +02:00
|
|
|
startTime: TimeRangeOutput!
|
2021-05-21 09:30:15 +02:00
|
|
|
}
|
|
|
|
|
2021-03-31 07:23:48 +02:00
|
|
|
input JobFilter {
|
2021-10-26 10:22:02 +02:00
|
|
|
tags: [ID!]
|
|
|
|
jobId: StringInput
|
2021-12-16 13:17:48 +01:00
|
|
|
user: StringInput
|
|
|
|
project: StringInput
|
|
|
|
cluster: StringInput
|
2021-10-26 10:22:02 +02:00
|
|
|
duration: IntRange
|
|
|
|
numNodes: IntRange
|
|
|
|
startTime: TimeRange
|
2021-12-16 13:17:48 +01:00
|
|
|
jobState: [JobState!]
|
2021-05-06 13:50:38 +02:00
|
|
|
flopsAnyAvg: FloatRange
|
2021-10-26 10:22:02 +02:00
|
|
|
memBwAvg: FloatRange
|
|
|
|
loadAvg: FloatRange
|
|
|
|
memUsedMax: FloatRange
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input OrderByInput {
|
|
|
|
field: String!
|
2021-10-26 10:22:02 +02:00
|
|
|
order: SortDirectionEnum! = ASC
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum SortDirectionEnum {
|
|
|
|
DESC
|
|
|
|
ASC
|
|
|
|
}
|
|
|
|
|
|
|
|
input StringInput {
|
2021-10-26 10:22:02 +02:00
|
|
|
eq: String
|
|
|
|
contains: String
|
2021-03-31 07:23:48 +02:00
|
|
|
startsWith: String
|
2021-10-26 10:22:02 +02:00
|
|
|
endsWith: String
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input IntRange {
|
|
|
|
from: Int!
|
2021-10-26 10:22:02 +02:00
|
|
|
to: Int!
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input FloatRange {
|
|
|
|
from: Float!
|
2021-10-26 10:22:02 +02:00
|
|
|
to: Float!
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input TimeRange {
|
2021-10-26 10:22:02 +02:00
|
|
|
from: Time
|
|
|
|
to: Time
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type JobResultList {
|
2021-10-26 10:22:02 +02:00
|
|
|
items: [Job!]!
|
2021-03-31 07:23:48 +02:00
|
|
|
offset: Int
|
2021-10-26 10:22:02 +02:00
|
|
|
limit: Int
|
|
|
|
count: Int
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type HistoPoint {
|
|
|
|
count: Int!
|
|
|
|
value: Int!
|
|
|
|
}
|
|
|
|
|
|
|
|
type JobsStatistics {
|
2021-10-26 10:22:02 +02:00
|
|
|
id: ID! # If `groupBy` was used, ID of the user/project/cluster
|
|
|
|
totalJobs: Int! # Number of jobs that matched
|
|
|
|
shortJobs: Int! # Number of jobs with a duration of less than 2 minutes
|
|
|
|
totalWalltime: Int! # Sum of the duration of all matched jobs in hours
|
|
|
|
totalCoreHours: Int! # Sum of the core hours of all matched jobs
|
|
|
|
histWalltime: [HistoPoint!]! # value: hour, count: number of jobs with a rounded duration of value
|
|
|
|
histNumNodes: [HistoPoint!]! # value: number of nodes, count: number of jobs with that number of nodes
|
2021-09-23 11:45:20 +02:00
|
|
|
}
|
|
|
|
|
2021-03-31 07:23:48 +02:00
|
|
|
input PageRequest {
|
2021-09-23 11:45:20 +02:00
|
|
|
itemsPerPage: Int!
|
2021-10-26 10:22:02 +02:00
|
|
|
page: Int!
|
2021-03-31 07:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
scalar Time
|
2021-10-26 10:22:02 +02:00
|
|
|
scalar NullableFloat
|
|
|
|
scalar JobMetricScope
|