DOC: Add usage example to SSHCluster docstring#3864
DOC: Add usage example to SSHCluster docstring#3864
Conversation
|
Thanks for raising this. Best practice with SSH is always to use keys, not passwords. I think adding this example is valuable, but it shouldn't be a best practice example. It is also possible to configure port forwards with |
I hope you mean "it should be an example that uses the best practices." Most of that example is working for me, but I'm having difficulty creating an DetailsI've followed the SSH key generation guide (which is also in the docstring: $ ssh-keygen -t rsa -b 4096 -f ~/.ssh/dask-ssh -P ""
$ ssh-copy-id -i ~/.ssh/dask-ssh user@machineThat means I can login with this command: ssh -i ~/.ssh/dask-ssh user@machineHowever I'm having difficulty creating the I think I need to specify the correct
That'd be a good example I think. I think there should also be an example with different conda environments. |
Co-authored-by: Jacob Tomlinson <jacobtomlinson@users.noreply.github.com>
|
Thanks! Now I can log in to the cluster. But, I'm having some issues starting the dask-worker. I'm getting some errors about a timeout:
Here's the full traceback: Details |
|
It looks like your client cannot speak directly to the scheduler. It is looking for it at Could there be some firewall rules blocking your Python session from speaking to that host and IP? |
Yes. The machines I use are owned by UW–Madison, and they have a pretty stringent firewall. I think this would be a valuable example then:
|
|
You wont be able to run the scheduler on 22 as SSH is already using it. What you should do is port forward the dask scheduler port to your local machine. However the The other assumption that Dask makes is that all workers and the scheduler can speak on any high port number at any time. Do you think the firewall rules at UW–Madison will hinder this too? |
|
I think this PR is done, at least until #3881 is resolved. I've added what I'm using to get around the firewall restrictions.
I think it did interfere, but it's not an issue anymore. |
What does this PR implement?
It adds a usage example to the SSHCluster docstring.
I am unsure if this is "best practice" – please review with that in mind.
Reference issues/PRs