-
1. Re: How does cluster node discovery work?
nadirx Sep 24, 2018 2:13 AM (in response to dastultz)IIRC there might be an issue with the default multicast routing on OSX ([JGRP-1808] Mac OS: no multicast route for 127.0.0.1 - JBoss Issue Tracker )
Discovery is performed by JGroups (our underlying communication library): Chapter 7. List of Protocols
Read our docs http://infinispan.org/docs/stable/user_guide/user_guide.html#clustered_configuration for more information.
-
2. Re: How does cluster node discovery work?
dastultz Sep 24, 2018 7:27 AM (in response to nadirx)OK, thanks for that. I'm not swift enough with networking so I wasn't able to get the proposed solution to work.
/Daryl
-
3. Re: How does cluster node discovery work?
galder.zamarreno Sep 26, 2018 2:11 AM (in response to dastultz)Did you try running with these system properties?
-Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1
-
4. Re: How does cluster node discovery work?
dastultz Sep 26, 2018 7:26 AM (in response to galder.zamarreno)I had run the infinispan-simple-tutorials/replicated as-is so assumed it would do the right thing. I applied your suggestion to the code I copied into my project and it appears to have worked. Thanks!
/Daryl
-
5. Re: How does cluster node discovery work?
dastultz Sep 26, 2018 7:57 AM (in response to nadirx)I marked Galder as correct, but I believe I owe credit to Tristan as well.
-
6. Re: How does cluster node discovery work?
galder.zamarreno Oct 1, 2018 10:01 AM (in response to dastultz)The simple tutorial preferIPv4Stack enabled. What it didn't do is default to 127.0.0.1 for JGroups bind address, I guess that's what made it work?
The tutorial can be run in a single machine, or you can run it in multiple machines, hence lack of default value.
It would probably make sense to default to 127.0.0.1 bind_addr and add it to the pom. We can then explain that to run it in multiple machines the value needs adjusting.
-
7. Re: How does cluster node discovery work?
galder.zamarreno Oct 2, 2018 11:51 AM (in response to galder.zamarreno)I've created [ISPN-9571] Clustered tutorials should bind to localhost by default so that maven options show how to set a bind address. By default this would be 127.0.0.1.