如何在 openvz 中获取默认 gridgain 节点发现同一网络上的其他节点
我使用 proxmox 和 openvz 容器。我无法让默认网格增益节点识别网络上其他地方的节点。 ping 工作没有问题。 我遇到的错误之一是
[29-Apr-2011 21:24:55][WARN ][gridgain-#5%null%][GridDiagnostic] No live network interfaces detected. If IP-multicast discovery is used - make sure to add 127.0.0.1 as a local address.
我使用 venet 作为网络接口。 (ifconfig 输出)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:593703 errors:0 dropped:0 overruns:0 frame:0
TX packets:333690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:286774352 (273.4 MiB) TX bytes:18272326 (17.4 MiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.0.203 P-t-P:192.168.0.203 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
在一个 openvz 容器中运行 2 个节点可以按预期工作,不会出现任何问题。我更喜欢使用 openvz 容器而不是完整的虚拟机。
还使用 OpenJDK 运行时环境版本。 1.6.0_18-b18。
Im using proxmox and openvz containers. Im having trouble getting the default gridgain nodes to recognize nodes elsewhere on the network. pinging works without issue.
one of the errors im getting is
[29-Apr-2011 21:24:55][WARN ][gridgain-#5%null%][GridDiagnostic] No live network interfaces detected. If IP-multicast discovery is used - make sure to add 127.0.0.1 as a local address.
im using venet as the network interface. (ifconfig output)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:593703 errors:0 dropped:0 overruns:0 frame:0
TX packets:333690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:286774352 (273.4 MiB) TX bytes:18272326 (17.4 MiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.0.203 P-t-P:192.168.0.203 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
running 2 nodes in one openvz container works as expected without issues. I would prefer to use openvz containers rather than full vms.
also using OpenJDK Runtime Environment ver. 1.6.0_18-b18.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用具有固定 IP 地址和端口列表的 TCP 发现。看看环回地址是如何完成的
Try using TCP discovery with a fixed IP address and port list. Have a look at how it is done for loopback address here. Put your actual addresses and ports in the list. Also, specify explicitly your external (non-loopback) IP address in "localHost" property for each of the nodes.