Crate.io - 未能向主人发送加入请求

Crate.io - failed to send join request to master

我正在尝试连接位于不同数据中心的两个 Crate.io 节点。节点 1 是 master,已经 运行。当我尝试让节点 2 加入集群时,出现以下错误:-

[2016-06-23 09:29:30,475][INFO ][discovery.zen] [Node 2] failed to 
send join request to master [[Node 1][flPMSe_vQw-2GEb5dkwqaw][ns1.example.com]
[inet[/11.22.33.44:4300]]{http_address=http://11.22.33.44:4200, master=true}], 
reason [RemoteTransportException[[Node 1][inet[/11.22.33.44:4300]][internal:discovery
/zen/join]]; nested: ConnectTransportException[[Node 2][inet[/10.19.0.5:4300]] 
connect_timeout[30s]]; nested: ConnectTimeoutException
[connection timed out: /10.19.0.5:4300]; ]

有什么想法吗?

在crate.yml

network.publish_host: <ip address of Node 2>

service crate restart

是的,这些数据中心之间似乎有 NAT,这就是为什么您需要将发布主机参数设置为您的 public IP(您必须将端口映射到 this/these machine/s)。

要解决此问题,请在 crate.yml 中设置 publish_host 并且可能(如果需要 - 取决于您的端口映射设置)publish_port.

看这里:https://crate.io/docs/reference/configuration.html#hosts