1 2 3 Previous Next 35 Replies Latest reply: Aug 25, 2012 10:06 AM by rang s RSS

    mod_cluster 1.2 + JBossAS 7.1 problem

    Tair Sabirgaliev Newbie

      I'm trying to setup a combination of mod_cluster 1.2.0.Final, JBossAS 7.1.1.Final and OpenJDK 1.6 on CentOS 6.2

       

      So far it seems like JBoss can't automatically discover the mod_cluster server.

       

      My steps:

      0. Disable firewall

       

      1. Download and install mod_cluster standalone. No changes in httpd.conf

       

      2. Run: sudo /opt/jboss/httpd/sbin/apachectl start

       

      3. Run: sudo tcpdump -n host 224.0.1.105

      Output:

      tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
      listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
      08:46:02.685535 IP 192.168.1.66.23364 > 224.0.1.105.23364: UDP, length 301
      08:46:07.727222 IP 192.168.1.66.23364 > 224.0.1.105.23364: UDP, length 301
      08:46:12.772314 IP 192.168.1.66.23364 > 224.0.1.105.23364: UDP, length 301
      08:46:17.817973 IP 192.168.1.66.23364 > 224.0.1.105.23364: UDP, length 301
      08:46:22.861130 IP 192.168.1.66.23364 > 224.0.1.105.23364: UDP, length 301
      ^C
      5 packets captured
      5 packets received by filter
      0 packets dropped by kernel
      

       

      Seems advertise is working.

       

      4. Download JBossAS-7.1.1.Final, unzip and run: ./standalone.sh -c standalone-ha.xml

       

      5. Deploy <distributable/> hello_cluster application: mvn clean package jboss-as:deploy

       

      6. Open http://localhost:8080/hello_cluster -- it works

       

      7. Open http://localhost/hello_cluster -- Not Found

       

      7. Open http://localhost:6666/mod_cluster_manager -- the list of nodes is empty

       

      8. Edit standalone-ha.xml, specify proxy-list :

       

              <subsystem xmlns="urn:jboss:domain:modcluster:1.0">
                  <mod-cluster-config advertise-socket="modcluster" proxy-list="127.0.0.1:6666">
                      <dynamic-load-provider>
                          <load-metric type="busyness"/>
                      </dynamic-load-provider>
                  </mod-cluster-config>
              </subsystem>
      

       

      9. Restart jboss

       

      10. Open http://localhost:6666/mod_cluster_manager -- 1 node in the list

       

      11. Open http://localhost/hello_cluster -- it works

       

      So my question: is this expected behavior? Am I missing something?

       

      UPDATE 28-March-2012:

      Works as per documentation with jboss-as-7.1.2.Final-SNAPSHOT (rev. bb233e7a5f391a1a50e1ff621eaa13d1c9fc1d1f)

        1 2 3 Previous Next