Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify cost value for computations #8654

Open
BitTheByte opened this issue May 26, 2024 · 1 comment
Open

Ability to specify cost value for computations #8654

BitTheByte opened this issue May 26, 2024 · 1 comment

Comments

@BitTheByte
Copy link

Some functions may require more resources than others so the ability to set the function cost is useful to avoid overloading workers.

Imagine function we have 1 worker with 4 threads and F(x), G(x) while 4 instances of G(x) could be computed easily on the worker, 2 or more instances of F(x) will overload the worker CPU thus a possible API could be.

f.submit(x=123, compute_cost=4)

This will allow the function to fill up the 4 threads that the worker has without submitting more tasks to it before completing this function.

Of course, the API requires considerable design choices but this issue serves as a discussion starter.

@BitTheByte
Copy link
Author

I'm fully aware that https://distributed.dask.org/en/latest/resources.html exists however it doesn't trigger autoscaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant