Proposal: Integrate Config Worker with Core Component #2211
Replies: 2 comments 5 replies
-
I have no strong feeling on this change.
However this sound highly optimized. If the validation script and other configuration files are now downloaded into a persistent container, why the overhead of downloading and deleting the files for each ORT run ? |
Beta Was this translation helpful? Give feedback.
-
Well, I don't think that the functionality implemented by the Config worker fits into the core module. It is part of the ORT run and should therefore be in the responsibility of Orchestrator. Whether it is implemented as a separate pod in Kubernetes or not is a different issue; this is merely an implementation detail and should be transparent to end users and not affect the UI. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The config worker has a very simple task which is to transform the
CreateOrtRun
object received via the API by running a custom parameter validation Kotlin script which needs to be loaded from the configuration repository. The actual processing of the script does not require many resources and is very fast, unlike the other workers which often need a lot of resources and run for a long time. This means that reasons to scale other workers independently do not apply to the config worker.Also, there is no database table to store information about config jobs which causes some issues:
Proposal
Instead of running the parameter validation script in a separate worker, run it directly in the core module when a new ORT run is triggered.
Benefits
Challenges
CreateOrtRun
object needs to happen asynchronously and should not block the API response.Beta Was this translation helpful? Give feedback.
All reactions