5 Replies Latest reply on Jun 24, 2014 10:27 AM by wdfink

    JBOSS AS 7.3/EAP 6.2 create a 2 Node Cluster where 1 is DC and other is HC

    miteshmanani

      Hello,

       

      This might be discussed elsewhere in the forums but didnt find any specific answer.

      I have 2 Machines. 1st is a Physical Box Connected to a Wi-fi Box.

      2nd is a Laptop connected to same wifi Box. So both of them are in a N/w and able to connect to each other.

      on 2nd Machine (Laptop) i have configured Jboss EAP 6.2 and running on Domain Mode with 2 Managed Servers (server-one and server-two)

      on 1st Machine i have configured Jboss EAP 6.2 and running as a Host Controller whose Domain controller is the above Laptop with 2 Managed Servers (server-three and server-four). This works fine.

      I am also able to install Stateless EJB 3.1 from DC CLI on all the servers using deploy deployment/my_ejb.jar --all-server-groups

      Also able to access it on different ports.

       

      What i want to achive is that, i want to create a cluster IP and port and Port between 2 Nodes and configure a mod_cluster as a load balancer and check how actually load balancer works with Jboss AS 7/EAP 6.2.

       

      Any suggestions or links would be really helpful.

        • 1. Re: JBOSS AS 7.3/EAP 6.2 create a 2 Node Cluster where 1 is DC and other is HC
          wdfink

          Does the documentation helps?

          AS7 Cluster Howto

          mod_cluster in AS7

          • 2. Re: JBOSS AS 7.3/EAP 6.2 create a 2 Node Cluster where 1 is DC and other is HC
            miteshmanani

            Hey Thanks a Lot !  That Exactly fits the requirement and i am almost there. Except my apache mod_cluster is not able to discover the nodes and http://192.168.1.101:10001/mod_cluster-manager doesnt work.

            At Slave's End i get something like this :

             

            02:18:18,419 ERROR [org.jboss.modcluster] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) MODCLUSTER000043: Failed to send INFO to LPT466-PC/192.168.1.101:10001: java.net.SocketTimeoutException: connect timed out

              at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) [rt.jar:1.7.0_40]

              at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) [rt.jar:1.7.0_40]

              at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) [rt.jar:1.7.0_40]

              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) [rt.jar:1.7.0_40]

              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) [rt.jar:1.7.0_40]

              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) [rt.jar:1.7.0_40]

              at java.net.Socket.connect(Socket.java:579) [rt.jar:1.7.0_40]

              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler$Proxy.getConnection(DefaultMCMPHandler.java:818)

              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler$Proxy.getConnectionWriter(DefaultMCMPHandler.java:841)

              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:482)

              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:583)

              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.status(DefaultMCMPHandler.java:370)

              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.status(DefaultMCMPHandler.java:350)

              at org.jboss.modcluster.ModClusterService.status(ModClusterService.java:458)

              at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:249)

              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1323) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1588) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1574) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

            • 3. Re: JBOSS AS 7.3/EAP 6.2 create a 2 Node Cluster where 1 is DC and other is HC
              wdfink

              Looks like a network issue.

              Do you have a firewall or other network stuff in between?

              Is the DC host reachable from the slave and vice versa?

              • 4. Re: JBOSS AS 7.3/EAP 6.2 create a 2 Node Cluster where 1 is DC and other is HC
                miteshmanani

                Stopped Windows 7 firewall on Both Master and Slave and Works Fantastic. Thanks a Lot !

                Just to close this thread, if you can clear a bit of my concept,

                Is mod_cluster a real-time load balancer ? i mean can we use it in a production enviornment with Heavy J2EE Applictions with 2000+ concurrent load?

                How is Apache mod_cluster compared to other load balancers like nginx or probably Citrix NetScalar ?

                 

                Regards,

                • 5. Re: JBOSS AS 7.3/EAP 6.2 create a 2 Node Cluster where 1 is DC and other is HC
                  wdfink

                  I don't have an idea about performance numbers.

                  You can use it in production, but the most important thing is the application as the LB should not eat most of the duration and CPU power