1 Reply Latest reply on Jan 30, 2012 9:11 AM by wdfink

    Clustering issue

    navurinv

      Hi guys,

       

                     I'm able to run two different nodes in same system and its working fine.i'm  using below commands to run different nodes

       

       

      run.sh  node1 -Djboss.service.binding.set=ports-01  -u 224.13.15.5 -c all -b 0.0.0.0 -Djboss.messaging.ServerPeerID=1

       

       

       

      run.sh  node2 -Djboss.service.binding.set=ports-default -u 224.13.15.5 -c all -b 0.0.0.0 -Djboss.messaging.ServerPeerID=2


       

       

      I have tested sending request its working fine if and only if change the port number in URL.

       

       

      EX:http://loclhost:8080/test/testServlet

            http://localhost:8180/test/testServlet

       

       

      Manually I'm changing port numbers.Please let me know any another approach is there.

       

      Thanks in advance.

        • 1. Re: Clustering issue
          wdfink

          Hello again,

           

          you have only one other option. You can use IP binding instead of change port numbers with offset.

           

          Your start command are like this:

          run.sh  node1 -u 224.13.15.5 -c all -b 192.168.1.10 -Djboss.messaging.ServerPeerID=1

          run.sh  node2 -u 224.13.15.5 -c all -b 192.168.1.11 -Djboss.messaging.ServerPeerID=2

           

          In this case you have to add the virtual IP address to the system network configuration

           

          i.e. add simple virtual IP address for Linux:

          # ifconfig             ( query configuration)

          em1      inet addr: 192.168.1.1 ....

                      UP BROADCAST RUNNING MULTICAST ....

           

          ifconfig em1:0 192.168.1.10     (add *.10 to the configuration)

          ifconfig em1:1 192.168.1.11

           

          You can access with:

          http://192.168.1.10:8080/test/testServlet

          http://192.168.1.11:8080/test/testServlet