-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Lock problm with Shared index directory
PostPosted: Wed Dec 24, 2008 12:55 am 
Newbie

Joined: Sat Jul 01, 2006 9:38 pm
Posts: 17
Hi,

My enviroment is
Hibernate Core : 3.2.6GA
Hibernate Search: 3.0.1GA

I'm deploying load balance with 2 tomcats and share 1 directory for index storing. And a problem occured which I thought shouldn't happen:
when stress testing, "Lock obtain timed out" exception is thrown out when there are only 10 concurrent threads.

How could I do with it? Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 24, 2008 5:06 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
you mean 2 tomcats on the same machine, or how is this index being shared?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 25, 2008 12:29 am 
Newbie

Joined: Sat Jul 01, 2006 9:38 pm
Posts: 17
Not on same machine, one tomcat per server. Use Apache to implement load balance.Index is on a RAID.
Thank you for the reply.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 25, 2008 5:16 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
Not on same machine

So how is this index shared? are you using NFS? The use of NFS or other network filesystem to share the index is not recommended, look at the Lucene forums: you'll find lots of problems.

In Search each index write operation needs the lock, then it guarantees to release it after the operation, but there is no notion of a "fair lock across machines", so under load it is probably re-acquiring the lock right after, so node2 never happens to "see" the lock available and after many failures it times out.

You'll find more insight and many solutions in the book.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 26, 2008 2:12 am 
Newbie

Joined: Fri Dec 26, 2008 2:09 am
Posts: 1
Hi friends, it was a nice information. Thanks for sharing.

_________________
Click4carbon


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.