3 Replies Latest reply on Apr 4, 2014 9:14 AM by rhusar

    Multicast not being processed

    sdyarnell

      I am trying to get a set up going with mod_cluster (mod_cluster-1.2.6.Final-windows-amd64) as the load balancer on one machine (LBMachine) and 2 JBoss (jboss-as-7.1.1.Final) instances clustered on another machine (JBMachine). I initially set up the clustered with the proxy-list attribute, and everything worked successfully.

       

      I then wanted to set up the load balancer discovery using multicast. I have found Advertize.java which just checks for the multicast packets, and I am receiving the multicast packets on the JBMachine. I also have a wireshark capture that has the multicast packet attached. However, for some reason, JBoss does not seem to be processing the multicast message. I have attached my server configuration and pasted important parts here. Also attached httpd.conf and pasted important parts.

       

      Socket binding:

       

      <socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
      
      

       

      Subsystem:

       

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

       

      JBoss console when I start JBoss shows this:

       

      08:39:14,950 INFO  [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (MSC service thread 1-15) Listening to proxy advertisements on 224.0.1.

      105:23364

       

      Also, netstat -ano shows this:

       

      UDP    0.0.0.0:23364          *:*                                    1028

       

      Here is my http.conf section:

       

      <IfModule manager_module>

        Listen 134.86.108.244:6666

        ManagerBalancerName mycluster

        <VirtualHost 134.86.108.244:6666>

          <Location />

           Order deny,allow

           Allow from all

          </Location>

       

       

       

          KeepAliveTimeout 300

          MaxKeepAliveRequests 0

          ServerAdvertise On

          AdvertiseFrequency 5

          #AdvertiseSecurityKey secret

          AdvertiseGroup 224.0.1.105:23364

          EnableMCPMReceive

       

       

       

          <Location /mod_cluster_manager>

             SetHandler mod_cluster-manager

             Order deny,allow

             Allow from all

          </Location>

       

       

       

        </VirtualHost>

      </IfModule>

       

      Obviously I feel everything is set up correctly, which is why I am here. Am I missing anything in the setup? I am leaning this being a bug in JBoss.

       

      Thanks in advance for the help. I am fairly new to JBoss configuring, so if more information is needed, dont hesitate to ask.

       

      SDY

        • 1. Re: Multicast not being processed
          sdyarnell

          *BUMP*

           

          If everything looks correct here to everyone else, please let me know. I will file a defect if that is the case.

          • 2. Re: Multicast not being processed
            sdyarnell

            Final bump.

             

            Anything at all, please post.

            • 3. Re: Multicast not being processed
              rhusar

              Hey Shawn,

              sorry I missed this post, posting to mod_cluster forum in this case would be better.

               

              The setup looks correct, I don't see anything wrong. Also, there are not known issues in this area.

               

              One thing comes to my mind -- how many interfaces are on the JBoss machine? It is possible that mod_cluster might be listening on the other one than the multicast traffic is being received.

               

              Otherwise we need to start debugging. You can add "LogLevel debug" to your virtual host. In the new version of mod_cluster I have added some debug logging if the message was verified or not, that way you could also easily find out if the message was even received and handled. You will have to connect a debugger on 7.1.1 to see if the message is even received -- my hunch is that it is not.

               

              Rado