Skip to content
\n

I have two problems with this approach:

\n
    \n
  1. I need to copy the env files to all our git repos, which means if I make a change I need to perform several pull requests
  2. \n
  3. I need to tell the data-scientits to pull the last commit, sometimes that's not possible because they can not merge/rebase the changes.
  4. \n
\n

Based on those two issues, in the end we tell data-scientists to just use:

\n
environment:\n  nodeSelector:\n    nodes: large-pool\n...\nrun:\n  ...\n  container:\n      resources:\n        limits:\n          cpu: 3000m\n          memory: 6000Mi\n        requests:\n          cpu: 2000m\n          memory: 4000Mi
\n

Which is error prone and confusing for them, and make the files bigger and difficult to change.

\n

Any elegant way to abstract this type of configuration from the data-scientists?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

We have already shared a resource on how to configure the environments in this guide

\n

if you are using multiple git repos and you do not want to replicate the yaml files in all repos you can register those files as presets:

\n
    \n
  • Users will be able to use --presets machine1 or --presets=env1
  • \n
\n

Note that in the example in that link, it shows that it defines a queue but you do not have to define a queue, a preset is just any YAML file that can be used with the override operator -f main.yaml -f override1.yaml -f override2.yaml in this case override1.yaml and override2.yaml it can be saved as organization presets using the UI.

\n

More info from the intro section about presets and the UI section

\n

Also, when you define presets you can use them directly on the operation or component

\n
presets: [preset1, preset2]
\n

This is similar to the CLI command

\n
polyaxon run -f polyaxon.yaml --presets preset1,preset2
","upvoteCount":1,"url":"https://github.com/orgs/polyaxon/discussions/1484#discussioncomment-2523630"}}}

I would like to configure Polyaxon in a way to avoid asking data-scientists to configure pre-emptible node-pools or request TPUs on their own #1484

Discussion options

You must be logged in to vote

We have already shared a resource on how to configure the environments in this guide

if you are using multiple git repos and you do not want to replicate the yaml files in all repos you can register those files as presets:

  • Users will be able to use --presets machine1 or --presets=env1

Note that in the example in that link, it shows that it defines a queue but you do not have to define a queue, a preset is just any YAML file that can be used with the override operator -f main.yaml -f override1.yaml -f override2.yaml in this case override1.yaml and override2.yaml it can be saved as organization presets using the UI.

More info from the intro section about presets and the UI section

Also, w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polyaxon-team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant