I'm using dask-mpi to deploy on my HPC. I'd like to get hold of the scheduler address to use with another library. This is simple in the case of a LocalCluster (or any other explicit cluster definition) e.g.:
from dask.distributed import Client, LocalCluster
cluster = LocalCluster()
client = Client(cluster)
address = cluster.scheduler_address
But dask-mpi is initialised without a cluster object:
from dask.distributed import Client
from dask_mpi import initialize
initialize()
client = Client()
Trying to access the underlying client.cluster doesn't help as, in this case, it's set to None.
Is there some other way to get hold of the scheduler address from the client or elsewhere? Thanks!