8 Replies Latest reply on Apr 21, 2008 9:16 AM by praveenas

    Importance of M-Bean architecuture

    praveenas

      Hi all,

      I am implementing clustering for the first time.

      I have run Apache (httpd 2.0.63) server for clustering jboss-4.2.2.GA. Currently I am running Jboss on only one machiene. I could run the war file on Jboss well, with url: http://10.20.220.15:9999/casper-2.1/app
      And I could see the same output when running Apache too.. with the url : http://10.20.220.15/casper-2.1/app.

      Please let me know the importance of using apache server and how is it being useful. Let me know how to achieve best clustering support with Jboss and how?
      Also, the importance of M-Bean architecuture while clustering.

      Thank you.



        • 1. Re: Importance of M-Bean architecuture
          brian.stansberry

          The basic clustering-related benefit of using apache/mod_jk comes when you have more than one JBoss instance. Then you need a load balancer so the client only needs to know about a single hostname. The apache server is that load balancer. You can also buy a hardware load balancer.

          • 2. Re: Importance of M-Bean architecuture
            praveenas

            Thank you for your reply!

            But, let me know how the web-tier clustering be done by Jboss. I have created multiple instances of Geronimo on a single machiene, so that different Geronimo instances run with different port numbers.
            But I dint find some thing similar type in Jboss as in the documentation given. Please let me know where can I find the steps of doing it.


            • 4. Re: Importance of M-Bean architecuture
              praveenas

              HI,

              We are running currently a product related to Information Security in Tomcat. As we need to handle huge number of transactions, we want to make use of clustering support. So, we are evaluating different application servers like Jboss and Geronimo.
              Please guide me, if the web - tier clustering will be the suitable choice for my requirement or any other better approch is available with Jboss. If so, let me know that.

              Thank you.

              • 5. Re: Importance of M-Bean architecuture
                praveenas

                Hi,

                I have gone through that document, http://wiki.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine

                The document is suggesting that when we "provide alternate ports for each instance of JBoss AS" for making the web-clustering is not recomended for a production server.

                So, if I choose the other alternative, May I know what is meant by "Multihoming the network card?"


                Thank you

                • 6. Re: Importance of M-Bean architecuture
                  brian.stansberry

                  If you need to handle a very large number of concurrent web requests, yes, you'll need to use web tier clustering. Whether you also need to use some kind of state replication depends on whether you want to support HA -- i.e. user doesn't lose session state if their session moves from one server to another.

                  What kind of state replication depends on where your application stores any session state. Most common is in the HttpSession, so you enable web session state replication by adding the "distributable" tag to your web.xml.

                  Multihoming the network card means assigning more than one IP address to the same network interface. See your OS docs for how to do this. An alternative is to have a second network interface. Main point is you have a distinct IP address available for each JBoss instance on the machine.

                  • 7. Re: Importance of M-Bean architecuture
                    praveenas


                    Yes, HA is also an essential feature for us and so we approched clustering. Please finalise the option which suits best for my requirement. Basically clustering support will be seen benificiery once the product is under production. So, up to me the second option(alternate ports for each instance of JBoss AS) is not suitable option according to the document, http://wiki.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine
                    I would be very happy, if you find some time to reply me at the earliest.

                    • 8. Re: Importance of M-Bean architecuture
                      praveenas

                      Hi Brian Stansberry ,

                      Basically, I want to check the clustering support between different physical machines. I want to make a similar thing like a load balancer be on one machine and the application running on jboss on other machines.
                      I have followed document from jboss4-clustering, 1.5. HTTP Services. I have used apache server(httpd 2.0.63) as load balancer. But, I have not tested on multiple physical machines yet. I want to confirm with you that, will the single line in workers.properties file be sufficient to register both jboss instances to be load balanced?
                      Will 2 systems be sufficient to test the clustering feature?

                      Thank you.