2 Replies Latest reply on Apr 22, 2010 11:46 AM by Mike schwery

    starting up clustered nodes that are on differant machines

    Mike schwery Novice

      I have installed jboss on two seperate machines with multiples instances on each machine.

      I'm trying to start up a node on each machine so that it will for a horizontal cluster.

      I just unzipped jboss and created the instances on each machine.

      Can I have the horizontal cluster formed when I start the nodes up?

      Also I don't have multicasting in the network that the jboss instances are installed on.

        • 1. Re: starting up clustered nodes that are on differant machines
          Paul Ferraro Master

          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:

          http://community.jboss.org/thread/68769

          • 2. Re: starting up clustered nodes that are on differant machines
            Mike schwery Novice

            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