jGroups is not finding other computers

烂漫一生 提交于 2019-12-13 03:47:41

问题


I am using jGroups to be able to determine the master for multiple instances of of an app I have, however, all works well on the same computer, but other computers on the same subnet does not get notified. I tried many options I found on the net such as starting with -Djgroups.bind.addr= I also started two instances on different machines (windows) and the other machine does not get notified:

java -cp jgroups-4.0.3.Final.jar -Djgroups.bind_addr=10.1.2.80 -Djava.net.preferIPv4Stack=true org.jgroups.demos.Draw

java -cp jgroups-4.0.3.Final.jar -Djgroups.bind_addr=10.1.10.82 -Djava.net.preferIPv4Stack=true org.jgroups.demos.Draw

Any help would be much appreciated. BTW- I also created a channel with the udp.xml: xml at: http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.infinispan/infinispan-core/7.0.3.Final/default-configs/default-jgroups-udp.xml


回答1:


I suggest go through the items in this checklist [1]. Also set GMS.print_local_addr to true and confirm that the instances bind to the correct bind address (e.g. not 127.0.0.1).

Note that if you start Draw without arguments, default udp.xml included in jgroups.jar will be used. You need to start Draw with the -props argument pointing to the udp.xml you customized.

[1] https://github.com/belaban/workshop/blob/master/slides/admin.adoc#problem-1-members-don-t-find-each-other



来源:https://stackoverflow.com/questions/44526164/jgroups-is-not-finding-other-computers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!