10 Replies Latest reply on Mar 16, 2006 1:22 PM by Brian Stansberry

    I just need a single cache but it is creating 2 cache for me

    biswajit_java Newbie

      Hi,

      I have confighired caching in clustering environment.Right now i am using two nodes for clustering.Suppose now my application is coming from 1st node,and i have data in my cache.Suppose after few times interruption occur in 1st node.At that time my application is coming from 2nd node,but not from the cache.At that time my cache is null (for the 1st time).2nd time onwards i am getting data from the cache for the same query.In the console i am getting the below mentioned message(1st time):-

      17:26:03,653 INFO [TreeCache] state could not be retrieved (must be first member in group)
      17:26:03,669 INFO [TreeCache] new cache is null (maybe first member in cluster)
      17:26:03,669 INFO [TreeCache] viewAccepted(): new members: [192.168.150.237:2478]

      From the above message it is clear that it is creating 2 different cache for me but i just need a single cache.

      I guess there is something wrong with my treecache-service.xml file.Right now my ClusterConfig part is like this,



      <!-- UDP: if you have a multihomed machine,
      set the bind_addr attribute to the appropriate NIC IP address -->
      <!-- UDP: On Windows machines, because of the media sense feature
      being broken with multicast (even after disabling media sense)
      set the loopback attribute to true -->
      <UDP mcast_addr="230.8.8.8" mcast_port="56677"
      ip_ttl="32" ip_mcast="true"
      mcast_send_buf_size="80000" mcast_recv_buf_size="150000"
      ucast_send_buf_size="80000" ucast_recv_buf_size="150000"
      loopback="false"/>
      <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"
      max_xmit_size="8192" up_thread="false" down_thread="false"/>
      <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
      down_thread="false"/>
      <pbcast.STABLE desired_avg_gossip="20000"
      up_thread="false" 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"/>



      Pliz provide me a solution for this.
      Thanks in advance.

      Regards,
      Biswajit