0 Replies Latest reply on Aug 11, 2002 9:44 AM by tobias

    Automatic cluster node detection fails between Linux and Win

    tobias

      (uromahn contributed:)

      Q: Why doesn't automatic node detection (for clustering) not work between Linux and Windows nodes (JBoss 3.0.0) ?

      A: There is a confirmed bug in the currently used Javagroups-20.jar which prevents automatic node detection between server instances running on Linux-Linux and on Linux-Windows. Although multicast IP has been enabled and is working, the two instances simply won't see each other.

      I don't know the details about this bug, but I do know how to fix it:

      1. Get the latest final version (source) of Javagroups 2.0.1 from sourceforge.net

      2. Compile it with the same version of JDK with which JBoss was compiled, e.g. JDK1.4 (IMPORTANT!!!)

      3. Delete the javagroups-20.jar from the JBOSS_HOME/server/all/lib directory
      (Note: use the "all" subdir if you are using the "all" config !)

      4. Copy the javagroups-core.jar from the JG_HOME/dist directory

      5. Rename it to javagroups-20.jar

      6. Add the following lines into the cluster-service.xml file:


      UDP(mcast_addr=228.8.8.8;mcast_port=45566;bind_addr=<my_server_ip_addr>;ip_ttl=32;mcast_send_buf_size=32000;mcast_recv_buf_size=64000):PING(timeout=2000;num_initial_members=3):MERGE2(min_interval=5000;max_interval=10000):FD:VERIFY_SUSPECT(timeout=1500):pbcast.STABLE(desired_avg_gossip=20000):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):UNICAST(timeout=1200):FRAG(down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)


      Please note, the new version of Javagroups does not work properly with the default properties compiled into the JBoss clustering source!

      That should do the trick - in my case JBoss clusters on any platform with JBoss on any other platform!