[jboss-user] [Clustering/JBoss] - Buddy Replication Issues

@jb0ss do-not-reply at jboss.com
Mon Nov 20 05:33:58 EST 2006


Hi Friends,
I am using jboss 4.0.5GA
I have the following properties se for my node to enable buddy replication.

<attribute name="BuddyReplicationConfig"> 
  |  <config> 
  |                 <buddyReplicationEnabled>true</buddyReplicationEnabled>
  |                 <buddyLocatorClass>org.jboss.cache.buddyreplication.NextMemberBuddyLocator</buddyLocatorClass>
  |                 <buddyLocatorProperties>
  |                     numBuddies = 1
  |                     ignoreColocatedBuddies = true
  |                 </buddyLocatorProperties>
  | 
  |                 <buddyPoolName>default</buddyPoolName>
  |                 <buddyCommunicationTimeout>2000</buddyCommunicationTimeout>
  | 
  |                 <autoDataGravitation>false</autoDataGravitation>
  |                 <dataGravitationRemoveOnFind>true</dataGravitationRemoveOnFind>
  |                 <dataGravitationSearchBackupTrees>true</dataGravitationSearchBackupTrees>
  |   </config>
  | </attribute>

But when I start two nodes and shutdown one node, the application crashes. Failover does not work.I am not able to understand why.

If I disable buddyclustering and let the session replicate across all nodes
then application clustering works fine for failover.

This is my jboss console log:-

-------------------------------------------------------
15:48:41,914 INFO  [TreeCache] TreeCache local address is www:7811
15:48:41,914 INFO  [BuddyManager] New buddy group: BuddyGroup: (dataOwner: www:7811, groupName: www_7811, buddies: [])
15:48:41,914 INFO  [TreeCache] parseConfig(): PojoCacheConfig is empty
15:48:41,914 INFO  [TreeCache] viewAccepted(): [www:7810|5] [www:7810, www:7811]
15:48:41,960 INFO  [NextMemberBuddyLocator] Expected to look for 1 buddies but could only find 0 suitable candidates - trying wi
 colocated buddies as well.
15:48:41,960 INFO  [NextMemberBuddyLocator] Expected to look for 1 buddies but could only find 0 suitable candidates - trying ag
n, ignoring buddy pool hints.
15:48:41,960 INFO  [NextMemberBuddyLocator] Expected to look for 1 buddies but could only find 0 suitable candidates - trying wi
 colocated buddies as well.
15:48:41,960 INFO  [BuddyManager] Assigning new buddies to buddy group [www_7811].  New buddies are [www:7810]
15:48:41,960 INFO  [TreeCache] locking the subtree at / to transfer state
15:48:41,992 INFO  [StateTransferGenerator_140] returning the state for tree rooted in /(1024 bytes)
15:48:42,164 INFO  [BuddyManager] Assigning self to buddy group BuddyGroup: (dataOwner: www:7810, groupName: www_7810, buddies:
ww:7811])
15:48:42,164 INFO  [TreeCache] received the state (size=4096 bytes)
15:48:42,179 INFO  [BuddyManager] New buddy group: BuddyGroup: (dataOwner: www:7811, groupName: www_7811, buddies: [www:7810])
15:48:42,804 INFO  [DefaultPartition] Initializing
15:48:42,882 INFO  [STDOUT]

Need help
Thanks
Vishal

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

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



More information about the jboss-user mailing list