5 Replies Latest reply on May 2, 2014 8:16 AM by wdfink

    Jboss cluster configuration

    bharathk10

      Hi Everybody,

       

      We are developing application using Jboss AS 7.1.1 final.

        I need help to set up a master and slave for cluster configuration.I have done all the steps  explained in https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto

      I have installed mod-cluster and  httpd ,but configuring the same in jboss ,I need help.like how you can configure mod cluster/httpd in jbosss 7.1 and handling the request even either master or slave server one of them is down.

      I am not able to configure mod cluster and jboss 7.1 AS .need more info on the same.

       

      Thanks in Advance .

       

      @

        • 1. Re: Jboss cluster configuration
          kuldeep11

          Please provide more details about the issue you are facing.

          • 2. Re: Jboss cluster configuration
            rhusar

            I need help to set up a master and slave for cluster configuration.

            Well cluster doesnt  work on master/slave, only the configuration does. Each node participates in the cluster by the same deal.

             

            even either master or slave server one of them is down.

            Why would it make sense to leave 50% of your hardware do nothing?

            I am not able to configure mod cluster and jboss 7.1 AS .need more info on the same.

            Refer to mod_cluster project documentation as well:

            mod_cluster Documentation

             

            Or alternatively describe your problem in more detail?

            • 3. Re: Jboss cluster configuration
              bharathk10

              Hi ,

              I am able to bring up an cluster environment of  master and slave,I have installed the httpd and mod cluster required for cluster configuration .Now if I deploy my app it from my Domain Controller (master) it gets deployed in both master and slave servers. Now if I try to access the app with IP address of the  (master server) machine it is working .But if I bring down my master server and try to access the app again with IP address of the master server machine the app is not working/inaccessible though my slave server is up and running the request was not sent to the slave server.

               

              So my confusion is to how to set up a virtual host name for the app like it should route the request to any of the server which is up and running.I want to configure a common IP address/name for the app to get accessed from either of the servers.I think I am missing some configuration between mod cluster and Jboss .

               

              How to tell JBoss it should use modcluster or how to handle the scenario of fail-over in cluster environment as described above.

              • 4. Re: Jboss cluster configuration
                bharathk10

                Hi ,

                I am able to bring up an cluster environment of  master and slave,I have installed the httpd and mod cluster required for cluster configuration .Now if I deploy my app it from my Domain Controller (master) it gets deployed in both master and slave servers. Now if I try to access the app with IP address of the  (master server) machine it is working .But if I bring down my master server and try to access the app again with IP address of the master server machine the app is not working/inaccessible though my slave server is up and running the request was not sent to the slave server.

                 

                So my confusion is to how to set up a virtual host name for the app like it should route the request to any of the server which is up and running.I want to configure a common IP address/name for the app to get accessed from either of the servers.I think I am missing some configuration between mod cluster and Jboss .

                 

                How to tell JBoss it should use modcluster or how to handle the scenario of fail-over in cluster environment as described above.

                • 5. Re: Jboss cluster configuration
                  wdfink

                  If you look to AS7 Cluster Howto there is a LoadBalancer with Apache in front of the JBoss instances. This instance is connected be http requests and manage the connection(s) to the backend.

                  If you use EJB invocations this is done inside the JBoss API.

                   

                  So there are different possiblilities to achive that, you might also use a HW load-balancer.