I'm also wondering if we should have a tighter link between PBS resources spec and the dask processes/worker/memory options.
Basically, given select=x:ncpus=y:mem=z resource_spec from PBS:
- x should always be one, as we launch one dask-worker per node,
- y should be equal to dask nthreads * nprocesses, if I'm not mistaken,
- z should be equal to dask nprocesses * memory-limit, again correct me if I'm wrong.
Should we implement this behaviour in the code? This would mean that we don't need the resource_spec keyword arg anymore, but we can just build it using dask worker options.
I'm also wondering if we should have a tighter link between PBS resources spec and the dask processes/worker/memory options.
Basically, given select=x:ncpus=y:mem=z resource_spec from PBS:
Should we implement this behaviour in the code? This would mean that we don't need the resource_spec keyword arg anymore, but we can just build it using dask worker options.