1 Reply Latest reply on Feb 10, 2005 5:45 PM by sree praveen

    distributed treecache with tcp

    sree praveen Newbie

      hi all,

      It was hard all the way to come to this point. i am using hibernate along with jboss treecache in a distributed environment. I got my application to work perfectly with the multicasting between all the hosts. but now i am trying to do the distributed caching using tcp connection in an repl_sync mode. i have done what all it needs to get the tcp working, but no result.
      i am trying to connect two hosts A and B. here is how my treecache.xml looks like on HostA.

      <TCP start_port="7900" />
      <TCPPING initial_hosts="HostB[7900]" port_range="5" timeout="3000"
      num_initial_members="1" up_thread="true" down_thread="true"/>
      <PING timeout="2000" num_initial_members="3"
      up_thread="false" down_thread="false"/>
      <MERGE2 min_interval="10000" max_interval="20000"/>
      <FD shun="true" up_thread="true" down_thread="true"/>
      <VERIFY_SUSPECT timeout="1500"
      up_thread="false" down_thread="false"/>
      <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
      up_thread="false" down_thread="false"/>
      <pbcast.STABLE desired_avg_gossip="20000"
      up_thread="false" down_thread="false"/>
      <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
      down_thread="false"/>
      <FRAG frag_size="8192"
      down_thread="false" up_thread="false"/>
      <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
      shun="true" print_local_addr="true"/>
      <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>

      the treecache.xml on the HostB looks the same but except the initial_hosts="HostA[7900]"

      i dont know what the problem might be, but none of the hosts are recognising each other. here i did not specify and bind_addr attribute , if that is the problem what should be the value of bind_addr in HostA (is it the ip address of HostA ), similaly,what is the bind_addr on the HostB.
      How is the bind_addr used.
      If some one can help me that would be great.
      thanks in advance

      --praveen

        • 1. Re: distributed treecache with tcp
          sree praveen Newbie

          hi all,

          the problem was the order of the attributes, i really dont know how that matters ..but i started working...
          the new configration is

          <TCP start_port="7800" bind_addr="ip address of this machine"/>
          <TCPPING initial_hosts="HostB[7800]" port_range="1" timeout="3000"
          num_initial_members="1" up_thread="true" down_thread="true"/>
          <FD shun="true" up_thread="true" down_thread="true"
          timeout="2500" max_tries="5" />
          <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
          <pbcast.NAKACK gc_lag="100" retransmit_timeout="3000" up_thread="true" down_thread="true" />
          <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
          <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false" print_local_addr="false" down_thread="true" up_thread="true" />
          <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>