Skip to content

Commit

Permalink
add schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte authored Sep 5, 2024
1 parent 928b131 commit 1bfcb9f
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
14 changes: 14 additions & 0 deletions onyxia-api/src/main/resources/schemas/nodeSelector-gpu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Node Selector",
"type": "object",
"description": "Node selector constraints for the pod",
"additionalProperties": {
"type": "string",
"description": "Key-value pairs to select nodes"
},
"x-onyxia": {
"hidden": false,
"overwriteDefaultWith": "region.nodeSelector"
}
}
47 changes: 47 additions & 0 deletions onyxia-api/src/main/resources/schemas/spark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Spark",
"type": "object",
"description": "spark specific configuration",
"properties": {
"sparkui": {
"type": "boolean",
"title": "SparkUI",
"description": "Enable Spark monitoring interface",
"default": true
},
"default": {
"type": "boolean",
"title": "Create a spark config",
"description": "Create a default spark config in spark-default.conf",
"default": true
},
"disabledCertChecking": {
"title": "Disable certificate checking ",
"type": "boolean",
"description": "Disable certificate checking for your S3 storage, do not use it in production",
"default": false
},
"userConfig": {
"type": "object",
"title": "Create a spark config",
"description": "Create a default spark config in spark-default.conf",
"default": {
"spark.dynamicAllocation.enabled": "true",
"spark.dynamicAllocation.initialExecutors": "1",
"spark.dynamicAllocation.minExecutors": "1",
"spark.dynamicAllocation.maxExecutors": "10",
"spark.executor.memory": "2g",
"spark.driver.memory": "2g",
"spark.dynamicAllocation.executorAllocationRatio": "1",
"spark.dynamicAllocation.shuffleTracking.enabled": "true",
"spark.hadoop.fs.s3a.bucket.all.committer.magic.enabled": "true"
},
"hidden": {
"value": false,
"path": "default",
"isPathRelative": true
}
}
}
}

0 comments on commit 1bfcb9f

Please sign in to comment.