On-demand kubernetes workers #604
fsaintjacques
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
So are you suggesting something like River would plug into the Kubernetes API (or something like that) to start jobs? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to see the support for allowing tasks to be executed by on-demand transient workers. The typical use case are tasks that require specialized/costly resources, e.g. GPU, high mem, etc. Having a long running worker waiting for work is cost prohibitive and where elastic scale can do wonder here (kubernetes clusters with scale down to 0).
An example workflow/implementation:
./my-binary worker $task-id
I can somewhat already hack this with with 2 queues, one that dispatches and creates the CRD, and the kubernetes-worker would drain from the second queue with custom filter to listen only for a give task-id. But all of this is tedious and filled with edge cases I don't want to worry about.
I'd want this to be supported natively, i.e. only one logical task in the UI but running in "detached" mode.
Beta Was this translation helpful? Give feedback.
All reactions