cc-backend/pkg/schema/schemas/job-meta.schema.json

352 lines
13 KiB
JSON
Raw Permalink Normal View History

2022-09-20 07:05:01 +02:00
{
"$schema": "http://json-schema.org/draft/2020-12/schema",
2022-09-20 10:27:23 +02:00
"$id": "embedfs://job-meta.schema.json",
2022-09-20 07:05:01 +02:00
"title": "Job meta data",
"description": "Meta data information of a HPC job",
"type": "object",
"properties": {
"jobId": {
"description": "The unique identifier of a job",
"type": "integer"
},
"user": {
"description": "The unique identifier of a user",
"type": "string"
},
"project": {
"description": "The unique identifier of a project",
"type": "string"
},
"cluster": {
"description": "The unique identifier of a cluster",
"type": "string"
},
"subCluster": {
"description": "The unique identifier of a sub cluster",
"type": "string"
},
"partition": {
"description": "The Slurm partition to which the job was submitted",
"type": "string"
},
"arrayJobId": {
"description": "The unique identifier of an array job",
"type": "integer"
},
"numNodes": {
"description": "Number of nodes used",
"type": "integer",
"exclusiveMinimum": 0
},
"numHwthreads": {
"description": "Number of HWThreads used",
"type": "integer",
"exclusiveMinimum": 0
},
"numAcc": {
"description": "Number of accelerators used",
"type": "integer",
"exclusiveMinimum": 0
},
"exclusive": {
"description": "Specifies how nodes are shared. 0 - Shared among multiple jobs of multiple users, 1 - Job exclusive, 2 - Shared among multiple jobs of same user",
"type": "integer",
"minimum": 0,
"maximum": 2
},
"monitoringStatus": {
"description": "State of monitoring system during job run",
"type": "integer"
},
"smt": {
"description": "SMT threads used by job",
"type": "integer"
},
"walltime": {
"description": "Requested walltime of job in seconds",
"type": "integer",
"exclusiveMinimum": 0
},
"jobState": {
"description": "Final state of job",
"type": "string",
"enum": [
"completed",
"failed",
"cancelled",
"stopped",
"out_of_memory",
"timeout"
]
},
"startTime": {
"description": "Start epoch time stamp in seconds",
"type": "integer",
"exclusiveMinimum": 0
},
"duration": {
"description": "Duration of job in seconds",
"type": "integer",
"exclusiveMinimum": 0
},
"resources": {
"description": "Resources used by job",
"type": "array",
"items": {
"type": "object",
"properties": {
"hostname": {
"type": "string"
},
"hwthreads": {
"type": "array",
"description": "List of OS processor ids",
"items": {
"type": "integer"
}
},
"accelerators": {
"type": "array",
"description": "List of of accelerator device ids",
"items": {
"type": "string"
}
},
"configuration": {
"type": "string",
"description": "The configuration options of the node"
}
},
"required": [
"hostname"
],
"minItems": 1
}
},
"metaData": {
"description": "Additional information about the job",
"type": "object",
"properties": {
"jobScript": {
"type": "string",
"description": "The batch script of the job"
},
"jobName": {
"type": "string",
"description": "Slurm Job name"
},
"slurmInfo": {
"type": "string",
"description": "Additional slurm infos as show by scontrol show job"
}
}
},
"tags": {
"description": "List of tags",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name",
"type"
]
},
"uniqueItems": true
},
"statistics": {
"description": "Job statistic data",
"type": "object",
"properties": {
"mem_used": {
"description": "Memory capacity used (required)",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"cpu_load": {
"description": "CPU requested core utilization (load 1m) (required)",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"flops_any": {
"description": "Total flop rate with DP flops scaled up (required)",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"mem_bw": {
"description": "Main memory bandwidth (required)",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"net_bw": {
"description": "Total fast interconnect network bandwidth (required)",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"file_bw": {
"description": "Total file IO bandwidth (required)",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"ipc": {
"description": "Instructions executed per cycle",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
2023-04-05 15:55:04 +02:00
"cpu_user": {
"description": "CPU user active core utilization",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"flops_dp": {
"description": "Double precision flop rate",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"flops_sp": {
"description": "Single precision flops rate",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"rapl_power": {
"description": "CPU power consumption",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
2022-09-21 15:20:26 +02:00
"acc_used": {
2022-09-20 07:05:01 +02:00
"description": "GPU utilization",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
2022-09-21 15:20:26 +02:00
"acc_mem_used": {
2022-09-20 07:05:01 +02:00
"description": "GPU memory capacity used",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
2022-09-21 15:20:26 +02:00
"acc_power": {
2022-09-20 07:05:01 +02:00
"description": "GPU power consumption",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"clock": {
"description": "Average core frequency",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"eth_read_bw": {
"description": "Ethernet read bandwidth",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"eth_write_bw": {
"description": "Ethernet write bandwidth",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"ic_rcv_packets": {
"description": "Network interconnect read packets",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"ic_send_packets": {
"description": "Network interconnect send packet",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"ic_read_bw": {
"description": "Network interconnect read bandwidth",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"ic_write_bw": {
"description": "Network interconnect write bandwidth",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"filesystems": {
"description": "Array of filesystems",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"nfs",
"lustre",
"gpfs",
"nvme",
"ssd",
"hdd",
"beegfs"
]
},
"read_bw": {
"description": "File system read bandwidth",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"write_bw": {
"description": "File system write bandwidth",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"read_req": {
"description": "File system read requests",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"write_req": {
"description": "File system write requests",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"inodes": {
"description": "File system write requests",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"accesses": {
"description": "File system open and close",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"fsync": {
"description": "File system fsync",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"create": {
"description": "File system create",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"open": {
"description": "File system open",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"close": {
"description": "File system close",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
},
"seek": {
"description": "File system seek",
2022-09-20 10:27:23 +02:00
"$ref": "embedfs://job-metric-statistics.schema.json"
2022-09-20 07:05:01 +02:00
}
},
"required": [
"name",
"type",
"read_bw",
"write_bw"
]
},
"minItems": 1
}
},
"required": [
2023-04-05 15:55:04 +02:00
"cpu_user",
"cpu_load",
2022-09-20 07:05:01 +02:00
"mem_used",
"flops_any",
"mem_bw"
]
}
},
"required": [
"jobId",
"user",
"project",
"cluster",
2023-03-31 11:30:33 +02:00
"subCluster",
2022-09-20 07:05:01 +02:00
"numNodes",
"exclusive",
"startTime",
"jobState",
"duration",
"resources",
"statistics"
]
}