局域网下work节点可以加入到公网下的head节点吗

我在腾讯云上启动了head节点,想将本地电脑work节点添加到集群,能加到集群,但是状态是DEAD,本地执行remote函数,会报错:RuntimeError: b"This node has an IP address of 127.0.0.1, and Ray expects this IP address to be either the GCS address or one of the Raylet addresses. Connected to GCS at xxx.xxx.xxx.xx and found raylets at 10.0.4.14 but none of these match this node’s IP 127.0.0.1. Are any of these actually a different IP address for the same node?You might need to provide --node-ip-address to specify the IP address that the head should use when sending to this node."
局域网下work节点可以加入到公网下的head节点吗?可以的话需要怎么启动ray呢?

确认下节点间能不能ping通,如果能够ping通,确认是通过哪个ip交互的,在启动ray节点的时候设置–node-ip-address即可

1 Like