Doing ray start --head --dashboard-host=0.0.0.0
as suggested here Ray Dashboard — Ray 2.33.0
doesn’t work.
Instead the dashboard is always directed to 127.0.0.1:8265
Looking at ray node.py line 186:
# Initialize webui url
if head:
self._webui_url = None
else:
if ray_params.webui is None:
assert not self._default_worker
self._webui_url = ray._private.services.get_webui_url_from_internal_kv()
else:
self._webui_url = (
f"{ray_params.dashboard_host}:{ray_params.dashboard_port}"
)
suggests that if head, the dashboard host is ignored. Is this expected?
Apologies, the flag --dashboard-host does work
I was not able to access the dashboard for another reason and I was tricked by this startup message into thinking that --dashboard-host=0.0.0.0 did not have an effect.
To connect to this Ray cluster:
import ray
ray.init()
To submit a Ray job using the Ray Jobs CLI:
RAY_ADDRESS='http://127.0.0.1:8265' ray job submit --working-dir . -- python my_script.py
See https://docs.ray.io/en/latest/cluster/running-applications/job-submission/index.html
for more information on submitting Ray jobs to the Ray cluster.
To terminate the Ray runtime, run
ray stop
To view the status of the cluster, use
ray status
To monitor and debug Ray, view the dashboard at
127.0.0.1:8265