Open Adam-D-Lewis opened 2 years ago
Hi! The scaling here should be fully handled by Dask. Do you see scaling occur if submitting tasks to Dask directly rather than using Prefect?
@madkinsz Yeah, I do see Dask scaling up when using client.map
directly though it took 40-50 seconds. I updated the example above, and took note of how long until the additional worker pods show up after the client.wait_for_workers(1)
line, and added what I'm seeing to the comments in the example above.
Description
When mapping over a large set of inputs which creates many tasks, an adaptive DaskExecutor will not scale up it's workers when the tasks that are mapping over the inputs are quick. Scale up does occur when the tasks take longer.
Reproduction
Environment
dask == 2021.08.01 distributed == 2021.08.01 dask-gateway == 0.9.0