Update cluster.schema.json

Move MetricDataRepository property to cc config file.
This commit is contained in:
Jan Eitzinger 2022-08-25 12:26:13 +02:00
parent 5cf89a6a3b
commit 5ea38d5a6c

View File

@ -8,31 +8,6 @@
"description": "The unique identifier of a cluster", "description": "The unique identifier of a cluster",
"type": "string" "type": "string"
}, },
"metricDataRepository": {
"description": "Type of the metric data repository for this cluster",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"influxdb-v1",
"influxdb-v2",
"prometheus",
"cc-metric-store"
]
},
"url": {
"type": "string"
},
"token": {
"type": "string"
}
},
"required": [
"kind",
"url"
]
},
"metricConfig": { "metricConfig": {
"description": "Metric specifications", "description": "Metric specifications",
"type": "array", "type": "array",
@ -94,165 +69,164 @@
"alert" "alert"
] ]
} }
} },
}, "required": [
"required": [ "name",
"name", "unit",
"unit", "scope",
"scope", "timestep"
"timestep" ]
] }
}, }
"subClusters": { },
"description": "Array of cluster hardware partitions", "subClusters": {
"type": "array", "description": "Array of cluster hardware partitions",
"items": { "type": "array",
"type": "object", "items": {
"properties":{ "type": "object",
"name": { "properties":{
"description": "Hardware partition name", "name": {
"type": "string" "description": "Hardware partition name",
}, "type": "string"
"processorType": { },
"description": "Processor type", "processorType": {
"type": "string" "description": "Processor type",
}, "type": "string"
"socketsPerNode": { },
"description": "Number of sockets per node", "socketsPerNode": {
"type": "integer" "description": "Number of sockets per node",
}, "type": "integer"
"coresPerSocket": { },
"description": "Number of cores per socket", "coresPerSocket": {
"type": "integer" "description": "Number of cores per socket",
}, "type": "integer"
"threadsPerCore": { },
"description": "Number of SMT threads per core", "threadsPerCore": {
"type": "integer" "description": "Number of SMT threads per core",
}, "type": "integer"
"flopRateScalar": { },
"description": "Theoretical node peak flop rate for scalar code in GFlops/s", "flopRateScalar": {
"type": "integer" "description": "Theoretical node peak flop rate for scalar code in GFlops/s",
}, "type": "integer"
"flopRateSimd": { },
"description": "Theoretical node peak flop rate for SIMD code in GFlops/s", "flopRateSimd": {
"type": "integer" "description": "Theoretical node peak flop rate for SIMD code in GFlops/s",
}, "type": "integer"
"memoryBandwidth": { },
"description": "Theoretical node peak memory bandwidth in GB/s", "memoryBandwidth": {
"type": "integer" "description": "Theoretical node peak memory bandwidth in GB/s",
}, "type": "integer"
"nodes": { },
"description": "Node list expression", "nodes": {
"type": "string" "description": "Node list expression",
}, "type": "string"
"topology": { },
"description": "Node topology", "topology": {
"type": "object", "description": "Node topology",
"properties":{ "type": "object",
"node": { "properties":{
"description": "HwTread lists of node", "node": {
"description": "HwTread lists of node",
"type": "array",
"items": {
"type": "integer"
}
},
"socket": {
"description": "HwTread lists of sockets",
"type": "array",
"items": {
"type": "array", "type": "array",
"items": { "items": {
"type": "integer" "type": "integer"
} }
}, }
"socket": { },
"description": "HwTread lists of sockets", "memoryDomain": {
"description": "HwTread lists of memory domains",
"type": "array",
"items": {
"type": "array", "type": "array",
"items": { "items": {
"type": "array", "type": "integer"
"items": {
"type": "integer"
}
} }
}, }
"memoryDomain": { },
"description": "HwTread lists of memory domains", "die": {
"description": "HwTread lists of dies",
"type": "array",
"items": {
"type": "array", "type": "array",
"items": { "items": {
"type": "array", "type": "integer"
"items": {
"type": "integer"
}
} }
}, }
"die": { },
"description": "HwTread lists of dies", "core": {
"description": "HwTread lists of cores",
"type": "array",
"items": {
"type": "array", "type": "array",
"items": { "items": {
"type": "array", "type": "integer"
"items": {
"type": "integer"
}
} }
}, }
"core": { },
"description": "HwTread lists of cores", "accelerators": {
"type": "array", "type": "array",
"items": { "description": "List of of accelerator devices",
"type": "array", "items": {
"items": { "type": "object",
"type": "integer" "properties": {
} "id": {
} "type": "string",
}, "description": "The unique device id"
"accelerators": {
"type": "array",
"description": "List of of accelerator devices",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique device id"
},
"type": {
"type": "string",
"description": "The accelerator type",
"enum": [
"Nvidia GPU",
"AMD GPU",
"Intel GPU"
]
},
"model": {
"type": "string",
"description": "The accelerator model"
}
}, },
"required": [ "type": {
"id", "type": "string",
"type", "description": "The accelerator type",
"model" "enum": [
] "Nvidia GPU",
} "AMD GPU",
}, "Intel GPU"
"required":[ ]
"node", },
"socket", "model": {
"memoryDomain" "type": "string",
] "description": "The accelerator model"
}
},
"required": [
"id",
"type",
"model"
]
}
}, },
"required":[ "required":[
"name", "node",
"topology", "socket",
"processorType", "memoryDomain"
"socketsPerNode",
"coresPerSocket",
"threadsPerCore",
"flopRateScalar",
"flopRateSimd",
"memoryBandwidth"
] ]
} },
}, "required":[
"required":[ "name",
"name", "topology",
"metricDataRepository", "processorType",
"metricConfig", "socketsPerNode",
"subClusters" "coresPerSocket",
] "threadsPerCore",
} "flopRateScalar",
"flopRateSimd",
"memoryBandwidth"
]
}
},
"required":[
"name",
"metricConfig",
"subClusters"
]
} }
} }
} }