Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 kubernetes 集群上设置 Ray。
我已经开始了一些工人和一些豆荚内的头。
有没有一种方法可以列出附加到头部的工作人员,而无需编写集群配置文件?
打开python解释器
import ray import pprint ray.init(redis_address="<cluster head>:<port>") gsct = ray.global_state.client_table() pprint.pprint(gsct)