Consider the below setup:
cluster = SSHCluster(["localhost", "localhost"],
connect_options={"known_hosts": None},
worker_options={"n_workers": 6], },
scheduler_options={"port": 0, "dashboard_address": ":8797"},)
client = Client(cluster)
starting a scheduler and 6 workers on localhost.
How can I access the dashboard?
First of all, I am specifying port 8797, when the program is running I try to access localhost:8797 and get the below:
Dask needs bokeh!=3.0.*,>=2.4.2 for the dashboard.
Install with conda:conda install bokeh!=3.0.*,>=2.4.2
Install with pip:pip install bokeh!=3.0.*,>=2.4.2
but bokeh is installed, version 2.4.2 to be specific. I am using a virtual environment, and I made sure bokeh is installed both in the virtual environment and in the main Python environment on the Linux VM.
Furthermore in the output I see:
distributed.worker - INFO - dashboard at: 192.168.0.15:44891
Accessing this link gives: 404 not found
I made sure port 44891 is open on the VM. but anyway this port is different on every run, and why isn’t it 8797? Why is port 8797 “accessible”, but giving the “bokeh” error?
I looked at this link and tried the below command from a terminal opened in the virtual environment:
ssh -L 8000:localhost:44891 jurgen@localhost
dask-scheduler
Accessing localhost:8000 works but this seems to be a completely new scheduler, and not the one started programmatically. Any help with this? Conceptually I am also a bit lost: are we even able to connect with the dashboard of a scheduler started programmatically? What is the easiest way to do it? Thanks in advance.