11 Replies Latest reply on Oct 10, 2002 3:05 PM by Andrew Boyd

    JBoss clustering

    hongmei Newbie

      hi, all.

      I am using JBoss3.0.2+Jetty. Is there anyone know how to clustering on JBoss? Here is what we want: 3 machines in a clustering, one is a web server(Jetty), and the others are 2 app servers(which are on 2 different machines) as EJB container only. In this way, the web server will handle all http requests and make remote calls to those 2 app server if necessary, and those 2 app servers will have Entity beans/Stateful session beans clustered.

      Any idea about how to configure that?

      Thanks,
      hongmei

        • 1. Re: JBoss clustering
          Sacha Labourey Master

          Hello,

          Maybe you'd better use apache on the front-end box and serve only static content and, for active content, redirect to the two JBoss instances running in the background using Apache load-balancing (with sticky sessions, see earlier posts on this topic in the forum)

          Then, on each of the JBoss instance (i.e. 2), you run Jetty/tomcat and the EJBs in-vm. You thus have a cluster of 2 nodes.

          Cheers,


          sacha

          • 2. Re: JBoss clustering
            Andrew Boyd Novice

            Hey Sacha,
            What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
            NY Advanced training class. Here is a quick rehash:
            3 machines each with a web server and app server.
            1 request to load say 10,000 files.

            The web/appserver that gets the initial request divides
            the files into smaller chunks that are then handed off to
            SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
            that did not get the initial request.

            I believe you told Jack that we might have to change some
            code. If you could point to a package we should look at it would be a big help.

            Thanks,
            Andrew

            • 3. Re: JBoss clustering
              Andrew Boyd Novice

              Hey Sacha,
              What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
              NY Advanced training class. Here is a quick rehash:
              3 machines each with a web server and app server.
              1 request to load say 10,000 files.

              The web/appserver that gets the initial request divides
              the files into smaller chunks that are then handed off to
              SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
              that did not get the initial request.

              I believe you told Jack that we might have to change some
              code. If you could point to a package we should look at it would be a big help.

              Thanks,
              Andrew

              • 4. Re: JBoss clustering
                Andrew Boyd Novice

                Hey Sacha,
                What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                NY Advanced training class. Here is a quick rehash:
                3 machines each with a web server and app server.
                1 request to load say 10,000 files.

                The web/appserver that gets the initial request divides
                the files into smaller chunks that are then handed off to
                SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                that did not get the initial request.

                I believe you told Jack that we might have to change some
                code. If you could point to a package we should look at it would be a big help.

                Thanks,
                Andrew

                • 5. Re: JBoss clustering
                  Andrew Boyd Novice

                  Hey Sacha,
                  What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                  NY Advanced training class. Here is a quick rehash:
                  3 machines each with a web server and app server.
                  1 request to load say 10,000 files.

                  The web/appserver that gets the initial request divides
                  the files into smaller chunks that are then handed off to
                  SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                  that did not get the initial request.

                  I believe you told Jack that we might have to change some
                  code. If you could point to a package we should look at it would be a big help.

                  Thanks,
                  Andrew

                  • 6. Re: JBoss clustering
                    Andrew Boyd Novice

                    Hey Sacha,
                    What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                    NY Advanced training class. Here is a quick rehash:
                    3 machines each with a web server and app server.
                    1 request to load say 10,000 files.

                    The web/appserver that gets the initial request divides
                    the files into smaller chunks that are then handed off to
                    SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                    that did not get the initial request.

                    I believe you told Jack that we might have to change some
                    code. If you could point to a package we should look at it would be a big help.

                    Thanks,
                    Andrew

                    • 7. Re: JBoss clustering
                      Andrew Boyd Novice

                      Hey Sacha,
                      What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                      NY Advanced training class. Here is a quick rehash:
                      3 machines each with a web server and app server.
                      1 request to load say 10,000 files.

                      The web/appserver that gets the initial request divides
                      the files into smaller chunks that are then handed off to
                      SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                      that did not get the initial request.

                      I believe you told Jack that we might have to change some
                      code. If you could point to a package we should look at it would be a big help.

                      Thanks,
                      Andrew

                      • 8. Re: JBoss clustering
                        Andrew Boyd Novice

                        Hey Sacha,
                        What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                        NY Advanced training class. Here is a quick rehash:
                        3 machines each with a web server and app server.
                        1 request to load say 10,000 files.

                        The web/appserver that gets the initial request divides
                        the files into smaller chunks that are then handed off to
                        SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                        that did not get the initial request.

                        I believe you told Jack that we might have to change some
                        code. If you could point to a package we should look at it would be a big help.

                        Thanks,
                        Andrew

                        • 9. Re: JBoss clustering
                          Andrew Boyd Novice

                          Hey Sacha,
                          What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                          NY Advanced training class. Here is a quick rehash:
                          3 machines each with a web server and app server.
                          1 request to load say 10,000 files.

                          The web/appserver that gets the initial request divides
                          the files into smaller chunks that are then handed off to
                          SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                          that did not get the initial request.

                          I believe you told Jack that we might have to change some
                          code. If you could point to a package we should look at it would be a big help.

                          Thanks,
                          Andrew

                          • 10. Re: JBoss clustering
                            Andrew Boyd Novice

                            Hey Sacha,
                            What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                            NY Advanced training class. Here is a quick rehash:
                            3 machines each with a web server and app server.
                            1 request to load say 10,000 files.

                            The web/appserver that gets the initial request divides
                            the files into smaller chunks that are then handed off to
                            SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                            that did not get the initial request.

                            I believe you told Jack that we might have to change some
                            code. If you could point to a package we should look at it would be a big help.

                            Thanks,
                            Andrew

                            • 11. Re: JBoss clustering
                              Andrew Boyd Novice

                              Hey Sacha,
                              What we are trying to do is load balance a data load operation. I believe Jack talked to you about this at the
                              NY Advanced training class. Here is a quick rehash:
                              3 machines each with a web server and app server.
                              1 request to load say 10,000 files.

                              The web/appserver that gets the initial request divides
                              the files into smaller chunks that are then handed off to
                              SLSB's to parse the files and update the DB. We would like to have a RoundRobin load balancing for the 2 boxes
                              that did not get the initial request.

                              I believe you told Jack that we might have to change some
                              code. If you could point to a package we should look at it would be a big help.

                              Thanks,
                              Andrew