-
1. Re: what about ip jGroup?
wdfink Nov 5, 2010 3:46 AM (in response to alexpr)The -u option will have multicast address, this is not a 'normal' IP address (often multicast is blocked by router/switches)
You might separate a cluster with this options:
-Djboss.partition.name=XXX -Djboss.partition.udpGroup=239.72.37.27 (same as -u) -Djboss.hapartition.mcast_port=39993
With the partition.name it is ensured that two nodes are in a separate cluster if the name is different even if the multicast address is the same (might be a performance issue).
If the mcast is blocked between two nodes you become only in trouble if you WANT to have a cluster.
see wiki http://community.jboss.org/wiki/TwoClustersontheSameNetwork
-
2. Re: what about ip jGroup?
alexpr Nov 7, 2010 9:19 PM (in response to wdfink)Hi Wolf-Dieter Fink!
As you said, jgroup multicast ip is not a normal IP addr, so is it a resource of my system? Why you set the param: -Djboss.partition.udpGroup=239.72.37.27 ?? Why this IP: 239.72.37.27? This IP has to satisfy what conditions?
-
3. Re: what about ip jGroup?
wdfink Nov 8, 2010 1:37 AM (in response to alexpr)Multicast addresses are a special part of IP address space (224.0.0.0 to 239.255.255.255) see e.g. wikipedia http://en.wikipedia.org/wiki/Multicast_address
My address is only an example.
You have to ensure that all instance of JBoss that have to build a cluster use the same address/port and partition name.
-
4. Re: what about ip jGroup?
alexpr Nov 8, 2010 11:33 PM (in response to wdfink)Hi!
Thank you for quick reply
So, if another machine know my jgroup ip and partition name, they would join my cluster illegally and do something wrong with my app!!!!
Can I config or restrict the number of IP join in my cluster?
-
5. Re: what about ip jGroup?
belaban Nov 9, 2010 2:13 AM (in response to alexpr)You can use AUTH to prevent unauthorized nodes to join a cluster: http://belaban.blogspot.com/2010/09/cluster-authentication-with-pattern.html
-
6. Re: what about ip jGroup?
wdfink Nov 9, 2010 2:15 AM (in response to alexpr)No,
If another machine know (configure the same) jgroup mcast address/port and partition name, it join the cluster legal, it works as designed.
You can't configure the same multicast and say 'don't allow 192.168.1.1 to join' !
So if you do not want to build a cluster use a different partition name and, to avoid unnecessary traffic, a different multicast address/port.
-