4 Replies Latest reply on Nov 22, 2002 1:39 PM by abalaban

    changing default domain name

      Hi,

      I changed a default domain for my cluster (on Solaris) and servers couldn't find themselves any more.

      I used that example of modifying of cluster-service.xml in the clustering documentation (starting with the chapter Setting Up Clustering). It did not work.

      After a long struggle I added:


      UDP(mcast_addr=228.8.8.8;mcast_port=45566;bind_addr=<ip-addr-of-your-if>;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)


      to my partition and it works now. The above should be the JBoss hardcoded default for the JavaGroups configuration.

      I just wonder why JBoss did not pick up this default when I changed the partition name only. It is different from the example in the Clustering documentation and not everybody is an expert on networking and JavaGroups (not me for sure).

      Should not be easier way just for changing domain name? I have seen a lot's of desperate questions on this forum.

      Regards

      Alex

        • 1. Re: changing default domain name
          slaboure

          Desasparate questions from people not reading the docs are not really desasparate questions.

          It doesn't seem to be your case ;)

          I don't understand your problem though: you try to change the partition name but *not* the JG stack, right? Then yes, the doco is correct and it should be possible. What wasn't working?

          Cheers,


          sacha

          • 2. Re: changing default domain name

            Sorry, I am currently lost. It stopped working, even when I try the default "all" server coming with JBoss it does not converge. I tried the JavaGroup's test programs to send/receive multicast packets and it works fine. I am running on the same IP address and port as JG test program. And JBoss log is still on "Number of cluster members: 1" - maby it's lying, maybe there is a cluster, I have to try it....

            Alex

            • 3. Re: changing default domain name
              belaban

              I hope you didn't use the spec you were posting !!! I strongly hope you replaced the value of "bind_addr" with a real IP address.

              Otherwise JavaGroups will puke on startup...

              Here is the current default stack spec (from the CVS head):


              "UDP(mcast_addr=228.1.2.3;mcast_port=45566;ip_ttl=64;" +
              "mcast_send_buf_size=150000;mcast_recv_buf_size=80000):" +
              "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=5000):" +
              "FRAG(down_thread=false;up_thread=false):" +
              // "CAUSAL:" +
              "pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;" +
              "shun=false;print_local_addr=true):" +
              "pbcast.STATE_TRANSFER";

              • 4. Re: changing default domain name

                > I hope you didn't use the spec you were posting !!! I
                > strongly hope you replaced the value of "bind_addr"
                > with a real IP address.

                Sorry, I was caught guilty of direct copy and paste action, the best friend of the programmer.

                I took that tag off.