ray 有自带的web管理页面吗?

副标题,无法访问 ray 自带的web管理页面

ray 最近在使用这个工具

我问了 chatgpt、kimi、智谱、豆包都说有对应的 web 管理页面

告诉我可以这样用

ray start --head --port=6379 --dashboard-host 0.0.0.0 --dashboard-port 8265

但是我要访问 http://127.0.0.1:8265/ 却不行

图片.png

╰─➤  http http://127.0.0.1:8265                                             
HTTP/1.1 503 Service Unavailable
Connection: close
Content-Length: 0
Proxy-Connection: close
阅读 722
1 个回答

问题解决了

原有是缺少依赖(很无语,缺依赖也不警告或者报错)

下面这样是不够的

pip install ray

要下面这样才行

pip install ray[default]

然后再

─➤  ray start --head --port=6379 --dashboard-host 0.0.0.0 --dashboard-port 8265
Usage stats collection is enabled. To disable this, add `--disable-usage-stats` to the command that starts the cluster, or run the following command: `ray disable-usage-stats` before starting the cluster. See https://docs.ray.io/en/master/cluster/usage-stats.html for more details.

Local node IP: 127.0.0.1

--------------------
Ray runtime started.
--------------------

Next steps
  
  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
  
  If connection to the dashboard fails, check your firewall settings and network configuration.
推荐问题
宣传栏