-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
onyxia-api/src/main/resources/schemas/nodeSelector-gpu.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |