You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use dask-jobqueue on an SGE cluster, and by default our worker nodes cannot communicate back to the login node. The admins have set aside a small range of ports us to use for this, but I can't seem to specify a port/port range for the scheduler to listen on. I see with dask.distributed's LocalCluster, you can specify the argument scheduler_port, but SGECluster does not seem to take the keyword (though it doesn't complain):
My previous mental model was that FooCluster**kwargs were forwarded until they reach the underlying LocalCluster cluster, but there is no underlying LocalCluster anymore with the SpecCluster refactor in #307.
This would needs to be looked at maybe @mrocklin you have a super rough guestimate how hard this would be to fix ? I am hoping this is a silly mistake that we did not catch and should be reasonably straightforward to figure out where the **kwargs fail to be forwarded to the right place.
At the moment I don't have the bandwidth to investigate, but a PR would certainly be welcome!
You want to make sure that the options dict here includes "port": .... These values get passed directly to the dask.distributed.Scheduler constructor (see that class's docstring for more information). For a more generic solution we might consider accepting a scheduler_options= keyword that accepted a dictionary of options?
Thanks. I'd certainly be willing to take a look at getting **kwargs forwarded correctly, and putting in a PR; is this something you'd want a non-core contributer working on?
Sure, help would be more than welcome on this! This is a regression in 0.7 and it would be nice to get it fixed.
Are these the only contribution guidelines: jobqueue.dask.org/en/latest/develop.html?
Yes (there is a link to dask contributing guidelines with more material), there was some talk about adding CONTRIBUTING.md in dask-communitydask/community#17.
In any case I am not sure what you mean by "only", but if you spot possible improvements in the contributing documentation, feel free to open a separate PR about this as well!
Activity
lesteve commentedon Oct 17, 2019
I can reproduce this and it seems like a regression in 0.7.0. It works as it should with 0.6.3.
Output with 0.6.3:
Output with 0.7.0 (random port):
My previous mental model was that
FooCluster**kwargswere forwarded until they reach the underlyingLocalClustercluster, but there is no underlyingLocalClusteranymore with theSpecClusterrefactor in #307.This would needs to be looked at maybe @mrocklin you have a super rough guestimate how hard this would be to fix ? I am hoping this is a silly mistake that we did not catch and should be reasonably straightforward to figure out where the
**kwargsfail to be forwarded to the right place.At the moment I don't have the bandwidth to investigate, but a PR would certainly be welcome!
hawk-sf commentedon Oct 18, 2019
Downgrading to 0.6.3 did the trick, for me. Thanks. I'd certainly be willing to take a look at getting
**kwargsforwarded correctly, and putting in a PR; is this something you'd want a non-core contributer working on? Are these the only contribution guidelines: https://jobqueue.dask.org/en/latest/develop.html?mrocklin commentedon Oct 19, 2019
The relevant lines to affect are here:
dask-jobqueue/dask_jobqueue/core.py
Lines 428 to 437 in c1e0a21
You want to make sure that the options dict here includes
"port": .... These values get passed directly to thedask.distributed.Schedulerconstructor (see that class's docstring for more information). For a more generic solution we might consider accepting ascheduler_options=keyword that accepted a dictionary of options?lesteve commentedon Oct 19, 2019
Sure, help would be more than welcome on this! This is a regression in 0.7 and it would be nice to get it fixed.
Yes (there is a link to dask contributing guidelines with more material), there was some talk about adding CONTRIBUTING.md in
dask-communitydask/community#17.In any case I am not sure what you mean by "only", but if you spot possible improvements in the contributing documentation, feel free to open a separate PR about this as well!
guillaumeeb commentedon Oct 21, 2019
see also dask/dask-kubernetes#196 for something similar.
guillaumeeb commentedon Feb 21, 2020
@hawk-sf would you still be willing to do something about this?
hawk-sf commentedon Feb 25, 2020
Yes- thanks for the prompt. This had slipped down the priority list, but I’ll have time to start at the end of this week.
lesteve commentedon Mar 4, 2020
FYI I have a PR in #384.