Can't change LocalCluster server ip.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 778
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 3
Description
I'm trying to change the LocalCluster server ip in order to be able to access the dashboard in a docker container but the server can't be initialized in the desired ip. This is important when using dask within a docker container since we can't really access the private network of the docker (I think), so we need to force the host in a different ip. The same happens with jupyter servers.
```
client = Client(LocalCluster(ip='0.0.0.0'))
```
For some reason the dask-scheduler is initialized in the default ip.
```
Scheduler: tcp://127.0.0.1:46239
Dashboard: http://127.0.0.1:34809/status
```
The only workaround for this is to spin up the dask-scheduler trough command line
```
dask-scheduler --host 0.0.0.0 --bokeh-port 8787
```
and then connect the client to this host
```
client = Client(address='0.0.0.0:8786')
Scheduler: tcp://0.0.0.0:8786
Dashboard: http://0.0.0.0:8787/status
```
Even though this is a viable option, I think that when dask is creating the LocalCluster server the ip variable isn't used correctly, what's make the server being created in the default ip.
Contributor guide
Assessment
This issue has not been assessed yet.