3 Replies Latest reply on Sep 17, 2010 3:48 PM by montblanc

    JBoss Clustering Farm Deployment

      Hi,

       

      I have setup jBoss clustering using farm deployment. with two nodes running in a cluster. when i start both the servers they are joined into the cluster but i get warning message on one of the servers. I am using JBoss 5.1.0 GA.

       

      "WARN  [org.jgroups.protocols.UDP] (JBoss System Threads(1)-3) failed to join /224.0.0.75:7500 on net3: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface"

       

      After starting the server i deploy my application into one of the servers all/deploy/farm folder. It gets deployed on that machine but the application is not replicated onto other node into the cluster.

       

      Is this issue related to the warning message mentioned above or there is anything else i need to do to enable farm based deployment in JBoss clustering.

       

      Any Help would be highly appreciated.

       

      Thanks.

        • 1. Re: JBoss Clustering Farm Deployment
          brian.stansberry

          The JGroups channels in the AS by default open a multicast socket for receiving diagnostic requests from JGroups' Probe utility.[1] By default they listen on multicast address 224.0.0.75, and it sounds like the NIC you're using doesn't support IPv4 addresses.

           

          A couple simple solutions:

           

          1) Turn off diagnostics by including this in your startup command:

           

          -Djboss.jgroups.enable_diagnostics=false

           

          2) Configure a different (IPv6) address by including this in your startup command:

           

          -Djboss.jgroups.diagnostics_addr=<some IPv6 multicast address>

           

          e.g. ff00:0:0:0:0:0:e000:1

           

           

          A bit less simple is to edit the server/<your config>/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml file and find the locations of "enable_diagnostics" or "diagnostics_addr" and change the values.

           

           

           

          [1] http://community.jboss.org/docs/DOC-11689

          1 of 1 people found this helpful
          • 2. Re: JBoss Clustering Farm Deployment
            brian.stansberry
            If clearing that up doesn't resolve your problem, please confirm that the nodes are properly forming a cluster, and if not start with http://community.jboss.org/docs/DOC-12375
            • 3. Re: JBoss Clustering Farm Deployment
              montblanc

              Is FARM deployment a recommended way to deploy apps in production? If not, what is the best practice for production environments?