Dask Dashboard Not Starting When Starting Scheduler With Api
I've set up a distributed system using dask. When I start the scheduler using the Python API, the dask scheduler doesn't mention starting the dashboard. As expected, I can not reac
Solution 1:
Firstly, even when starting the scheduler within a python process, you may wish to consider using LocalCluster
:
cluster = dask.distributed.LocalCluster(processes=False, n_workers=0)
where you can reach the scheduler as cluster.scheduler
, and cluster.scheduler.services
includes "bokeh".
For instantiating directly as you are doing, you would need to specify the services=
keyword to include the Bokeh dashboard plugin. The class to instantiate is distributed.bokeh.scheduler.BokehScheduler
, something like
services={('bokeh', diagnostics_port): (BokehScheduler, {})}
Were you wanting to do something particular with the loop and thread you have created? Perhaps, in that case, you can be more specific about what you want to achieve.
Post a Comment for "Dask Dashboard Not Starting When Starting Scheduler With Api"