[jboss-user] [JBossCache] - Shunning not working

jbirkenmaier do-not-reply at jboss.com
Mon Oct 16 12:17:00 EDT 2006


I have 2 JChannels both of which have shun enabled. One channel is for JBoss itself and the other is for my PojoCache. I have a cluster consisting of {A,B,C}. I unplug the network cable for C. Each node detects the loss of the other node(s). I wait about 60 seconds then plug the cable back in. What I want is for {A,B} to continue in their own cluster and C to continue in its own (separate) cluster. In other works, A and B reject C's effort to rejoin the cluster.

What is happening is that C rejoins A and B and my cache is merged thus becoming corrupt with C data. In other words, node C is not shunned by A and B and nodes A and B aren't shunned by C. Each node is notified of the change via a merge view event. I still need to receive this notification that a node tried to rejoin the cluster. I just want the rejoin to fail without touching the cache.

Here is an excerpt from one XML config file:

        <UDP mcast_addr="" mcast_port="48868" ip_ttl="64" ip_mcast="true"
             mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
             ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
             loopback="false" use_local_host="true"/>
        <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false"/>
        <MERGE2 min_interval="10000" max_interval="20000"/>
        <FD_SOCK down_thread="false" up_thread="false"/>
        <FD timeout="1000" max_tries="8" down_thread="false" up_thread="false" shun="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="700" up_thread="false" down_thread="false"/>
        <VIEW_SYNC avg_send_interval="60000" down_thread="false" up_thread="false" />
        <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true"/>
        <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
        <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
     <!-- Configure Marshalling (Both of these should be true together according to TreeCache Docs)-->

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978588#3978588

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978588

More information about the jboss-user mailing list