1 Reply Latest reply on Mar 30, 2009 10:47 AM by frankthetank

    Clustering for a non-http based application on JBoss

    sapan0832

      Hi,

      I am trying to configure JBoss 4.2.3.GA for clustering applictions (not a web application). Since it is not a web application I am not configuring Apache and mod_jk.

      Here are the steps I followed for configuring clustering on JBoss:

      1. Copied $JBOSS_HOME/server/all and renamed it as $JBOSS_HOME/server/node1

      2. In $JBOSS_HOME/server/node1/cluster-service.xml renamed all "DefaultPartition" to "TestPartition11".

      3. Started the server with the following command: ./run.sh -c node1 -b 10.10.10.174

      4. Repeated steps 1-3 for node2 on another machine in same network where JBoss AS v4.2.3 is installed.

      5. This is a snippet of the console where it added new member to the cluster and deleted a member when one server was shut down.

      16:42:53,155 INFO [TestPartition11] New cluster view for partition TestPartition11 (id: 1, delta: 1) : [10.10.10.174:1099, 10.10.10.171:1099]
      16:42:53,157 INFO [TestPartition11] I am (10.10.10.174:1099) received membershipChanged event:
      16:42:53,157 INFO [TestPartition11] Dead members: 0 ([])
      16:42:53,157 INFO [TestPartition11] New Members : 1 ([10.10.10.171:1099])
      16:42:53,157 INFO [TestPartition11] All Members : 2 ([10.10.10.174:1099, 10.10.10.171:1099])
      16:42:55,656 INFO [TestPartition11] New cluster view for partition TestPartition11 (id: 2, delta: -1) : [10.10.10.174:1099]
      16:42:55,657 INFO [TestPartition11] I am (10.10.10.174:1099) received membershipChanged event:
      16:42:55,657 INFO [TestPartition11] Dead members: 1 ([10.10.10.171:1099])
      16:42:55,657 INFO [TestPartition11] New Members : 0 ([])
      16:42:55,657 INFO [TestPartition11] All Members : 1 ([10.10.10.174:1099])
      16:42:56,055 INFO [TreeCache] viewAccepted(): [10.10.10.174:49394|2] [10.10.10.174:49394]
      16:42:56,469 INFO [TreeCache] viewAccepted(): [10.10.10.174:49401|1] [10.10.10.174:49401, 10.10.10.171:49999]

      When I tried farming deployment it gave the following message and the file did not get transferred to the other node in the cluster.

      16:44:42,987 INFO [ClusterFileTransfer] Start push of file cluster-examples-test-service.xml to cluster.
      16:44:43,041 INFO [ClusterFileTransfer] Finished push of file cluster-examples-test-service.xml to cluster.
      16:44:43,524 WARN [UDP] packet from 169.254.117.161:49667 has different version (12338) from ours (2.4.1). Packet is discarded
      16:44:52,320 WARN [UDP] packet from 169.254.117.161:49673 has different version (12338) from ours (2.4.1). Packet is discarded
      16:44:57,746 WARN [UDP] packet from 169.254.117.161:49664 has different version (12338) from ours (2.4.1). Packet is discarded

      I am not able to test farming deployment or session replication due to this warning.

      What else do I need to follow to configure JBoss clustering? Please advise.

      Regards,
      Sapan.