Im new in JbossAS. (AKA newbie )
When I work with JBoss cluster, I had a problem is:
An instance of JBossAS 5.1.0 GA run on machine 192.168.133.29: ./run.sh -b 192.168.133.29 -c all
Another instance of JBossAS 5.1.0 GA run on machine 192.168.133.40: ./run.sh -b 192.168.133.40 -c all
And when all started, they join together automatically! I don't wanna to do it because of I dont know another instance AS is vulnerable, and I use Farm to deploy my app in cluster.
So, I start my JBoss AS with command: ./run.sh -b 192.168.133.29 -c all -u 126.96.36.199 -Djboss.messaging.ServerPeerID=1. Its run isolated with another JbossAS in another machine. So, I got new problem:
The IP of JGroup is a material of my network? What happen if this IP (188.8.131.52) is block? Can I use -u 192.168.133.30?
Anybody could please let me know clear about problem above?
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=184.108.40.206 (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.
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=220.127.116.11 ?? Why this IP: 18.104.22.168? This IP has to satisfy what conditions?
Multicast addresses are a special part of IP address space (22.214.171.124 to 126.96.36.199) 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.
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.