-
1. Re: starting up clustered nodes that are on differant machines
pferraro Apr 21, 2010 5:07 PM (in response to mschwery)First off, you want to start JBoss using the "all" profile - or some custom profile that includes the clustering services.
e.g.
$JBOSS_HOME/bin/run.sh -c all
Second, if using multiple instances on multiple machines, you'll want to start each instance within a single machine using a different set of ports. This is done using the "jboss.service.binding.set" system property. The list of values are defined in $JBOSS_HOME/server/all/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml.
By default, jboss will use the "ports-default" set. The "jboss.service.binding.set" system property allows you to override this.
e.g.
$JBOSS_HOME/bin/run.sh -c all -Djboss.service.binding.set=ports-01
Third, by default, JBoss clustering requires multicast. To use JBoss clustering without multicast, refer to the lengthy explanation in this thread:
-
2. Re: starting up clustered nodes that are on differant machines
mschwery Apr 22, 2010 11:46 AM (in response to pferraro)That definately helped but I am seeing an error.
2010-04-22 10:21:56,255 INFO [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-0.0.0.0-8110
2010-04-22 10:21:56,270 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:25s:297ms
2010-04-22 10:33:48,083 WARN [org.jgroups.protocols.pbcast.NAKACK] (OOB-58,10.24.5.21:2145) 10.24.5.21:2145] discarded message from non-member 10.24.5.29:1690, my view is [10.24.5.21:2145|0] [10.24.5.21:2145]I started up the nodes on differant machine with the following commands
on 165.221.206.125
E:\jboss-5.1.0.GA\bin\run.bat -c TractorD001-1 -b 0.0.0.0 -g camaldev1 -Djboss.partition.name="TESTPART1" -Djboss.default.jgroups.stack="tcp-sync" -Djboss.service.binding.set=ports-01 -Djgroups.tcpping.initial.host=165.221.206.117:7600
on 165.221.206.117
E:\jboss-5.1.0.GA\bin\run.bat -c TractorA001-1 -b 0.0.0.0 -g camaldev2 -Djboss.partition.name="TESTPART1" -Djboss.default.jgroups.stack="tcp-sync" -Djboss.service.binding.set=ports-01 -Djgroups.tcpping.initial.host=165.221.206.125:7600