[jboss-user] [Clustering/JBoss] - Clustering for a non-http based application on JBoss

sapan0832 do-not-reply at jboss.com
Thu Feb 19 08:52:45 EST 2009


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.



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211467#4211467

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211467




More information about the jboss-user mailing list