4 Replies Latest reply on Jul 1, 2003 1:30 PM by cherianmathew

    how do i run a cluster on one machine?

    mfrost

      Hello

      Can anyone tell me how I can run a JBOSS cluster on a single machine?

      Simply issuing run -c all again doesn't work since ports are already in use.

      Can you tell me the changes I should make to enable me to start another node on the same machine.

      Many thanks

        • 1. Re: how do i run a cluster on one machine?
          clevanger

          First i must ask, what is the point of a cluster on one machine. I think that even contradicts the term doesn't it.

          Then i will assume it is for testing and try to help, the easiest way to go about this would be to have to seperate jboss installs rather than trying to start two instances, in install 2 you will need to change the port numbers in every config to something different than in install 1. Jboss automatically discovers other nodes, so you will also need to tell each server on which port it should be looking for nodes. This will not be entertaining, and i highly suggest you use two machines.

          Let me know how it turns out.

          • 2. Re: how do i run a cluster on one machine?
            mfrost

            yep - you're right it's for testing purposes.

            managed to get clustering working with 2 nodes on 1 machine:

            1. Change the default partition name so that I didn't clash with other developers on our network. This was just a case of search and replace of "DefaultPartition" in the configuration files.

            2. Copy JBOSS/server/all folder to say JBOSS/server/all2

            3. Comment out the CORBA services in JBOSS/server/all2/deploy/iiop-service.xml as I couldn't get them to work on second node

            3. Fix all of the following port statements:

            Service port used in all port used in all2
            JNDI 1099 1098
            HAJNDI 1100 1101
            webservice 8083 8084
            HTTPInvoker 8080 8081
            8090-8093 8094-8097
            Hypersonic 1701 1702

            And it works! I can start run -c all from one window and run -c all2 from another.

            Hope this helps anyone else wishing to do the same.

            • 3. Re: how do i run a cluster on one machine?
              cherianmathew

              Hai,

              I am also wondering how can I get clustering stuff working. If you can explain those steps in a little more detail, it would have been helpful.

              Thanks in Adance,
              Cherry

              • 4. Re: how do i run a cluster on one machine?
                cherianmathew

                Hi mfrost,

                Its working fine. I also checked it on the same machine.

                Onething more I would like to have your help is on the configuration of JBoss 3.2.1 to already running Tomcat 4.x.

                Thanks,
                Cherry