Skip to content

[Dask-MPI] How to connect to dashboard? #7480

Answered by andersy005
mtsokol asked this question in Q&A
Discussion options

You must be logged in to vote

@mtsokol, Glad to hear that #7467 accomplishes what you were looking for. To access the dashboard, you will need to do the following

  1. In your implementation.experiments, add 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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mtsokol
Comment options

@andersy005
Comment options

Answer selected by mtsokol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants