[Dask-MPI] How to connect to dashboard? #7480
-
Hi! I've recently switched from With
So the dashboard is running on one of the nodes for which I'm of course not allowed to access via ssh. Is it possible to access dask dashboard in Thank you for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@mtsokol, Glad to hear that #7467 accomplishes what you were looking for. To access the dashboard, you will need to do the following
from dask_mpi import initialize
initialize()
from dask.distributed import Client
from distributed.scheduler import logger
import socket
client = Client() # Connect this local process to remote workers
host = client.run_on_scheduler(socket.gethostname)
port = client.scheduler_info()['services']['dashboard']
login_node_address = "supercomputer.university.edu" # Change this to the address/domain of your login node
logger.info(f"ssh -N -L {port}:{host}:{port} {login_node_address}")
# The rest of your code
ssh -N -L PORT_NUMBER:node03:PORT_NUMBER supercomputer.university.edu Run that command (from your local machine) to create the SSH tunnel, and then point your browser to I hope this helps. |
Beta Was this translation helpful? Give feedback.
@mtsokol, Glad to hear that #7467 accomplishes what you were looking for. To access the dashboard, you will need to do the following
implementation.experiments
, add the following: