6 Replies Latest reply on Jan 27, 2003 8:36 PM by katrapalli

    Clustering Integrating JBoss with Tomcat and Apache as Load

    katrapalli

      Hi,
      I am trying to use Apache web server and the JBoss with Tomcat nodes.
      Has anyone got any document(s)? especially all the steps involved in the process.
      After spending some time on the documentation and this forum, I am able to create nodes and run the cluster.
      Now I want to use the Apache both as the Web server and as the load balancer (no hardware load balancer).
      I am struck at this point, because I couldn't find (after a little search through docs and this forum) any procedure how to define the workers in Apache (The AJP workers).
      I have my set up like this,
      I have two JBoss instances on the same machine that run at two different port numbers and in one cluster.
      I have two directories naming all, all2 for the above JBoss instances.
      I tried to place the apj connector in the tomcat41-srvice.xml similar to the HTTPConnector definition in the above xml file.
      I am using the JBoss version 3.0.4 and Tomcat 4.1.12 and Apache 2.0.39 on RedHat Linux 7.1
      Thanks in advance.
      -Raghu

        • 1. Re: Clustering Integrating JBoss with Tomcat and Apache as L
          swa297

          U can go to ubeans technologies web site and there is a document there for using apache as load balancer and serving 2 tomcat ....in ur case u can use jboss instead of tomcat..........

          i am doing this also and it is successfully running but i am facing a problem on hot deployment ......when i start my two jboss they both detect each other and when i deploy the ear and jar in farm directory ,it is deployed in the other jboss also ..........that is fine .But if i start with my ear and jar already in farm dierctory then it is deployed in that jboss but in other jboss it starts deploying but struck inthe middle and it doesnot move ahead.

          do u have any solution for it.

          cheers

          swarup

          • 2. Re: Clustering Integrating JBoss with Tomcat and Apache as L
            slaboure

            can you provide a file with either the exception that shows up or a complete stacktrace (press CTRL+BREAK in the console if under windows)

            • 3. Re: Clustering Integrating JBoss with Tomcat and Apache as L
              katrapalli

              I don't have the logs right now with me. However I could make it to work, I needed to use the following
              UDP string (I think for my initial development environment this is ok). The UDP string provided on either JavaGroups site or on the JBoss book were giving me the problems.
              Thanks to all for helping me out to resolve the issue.



              <!-- Making one Default Cluster by +++Raghu -->
              DefaultPartition
              true

              UDP(mcast_addr=228.1.2.3;mcast_port=45566):PING:FD(timeout=5000):VERIFY_SUSPECT(timeout=1500):MERGE:NAKACK:UNICAST(timeout=5000):FRAG:FLUSH:GMS:STATE_TRANSFER:QUEUE

              • 4. Re: Clustering Integrating JBoss with Tomcat and Apache as L
                belaban

                You should be able to run any of the JavaGroups demo programs to see whether a given protocol spec is okay. We recomment using the predefined ones in JG/conf, or at least start from there if you want to modify it. Use Draw or DistributedHashtable tests (the latter for state transfer testing).

                Bela

                • 5. Re: Clustering Integrating JBoss with Tomcat and Apache as L
                  hcguersoy

                  Hello Raghu,

                  last days i have begun the same task.

                  If you plan to use Apache take a look at the JK2-Dokumentation @ apache.org:

                  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

                  In the workers HowTo you can find the needed informations to set up apache (or better, mod_jk) as an load-balancer in front of some tomcat/catalina clients.

                  BTW, did you use the AJP13 connector? With 3.0.4 i have had many problems trying to use the new coyote connectors because their config in the service file are ignored by jboss.
                  And if you dont start jboss as a superuser you should use only ports above 1024.

                  Bye
                  Halil

                  • 6. Re: Clustering Integrating JBoss with Tomcat and Apache as L
                    katrapalli

                    Thanks Halil,
                    I had problems with Coyote Connector. The configuration for Apache-Jboss/Tomcat with the AJP13 is working fine. For my development purposes I am running the JBoss on 8080 so there is no problem/issue with the port numbers.
                    bye
                    -Raghu