-->
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.  [ 6 posts ] 
Author Message
 Post subject: Is there only one Master performing the index operation?
PostPosted: Wed Jul 09, 2008 9:03 pm 
Newbie

Joined: Wed Jul 09, 2008 8:55 pm
Posts: 9
More of a general question on hibernate search with JMS backend.

Is there only one master?
Also, does it mean, there is only one lucene indexer? for all the entities that are @Indexed?

Thanks for any help!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 7:51 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

Yes, there is only one master, but there are multiple IndexWriter instances. One for each entity annotated with @Indexed. At least that is the default. By changing the index name (property of @Indexed) you can index multiple entities in the same index.

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 1:56 pm 
Newbie

Joined: Wed Jul 09, 2008 8:55 pm
Posts: 9
Thanks Hardy, for the reply. It is much appreciated. :-)
Can we have one indexwriter per partition (if we do shards)?

What I am trying to do is get as much parallelism as possible in indexing.

Also, if we are talking 5 - 10 entity types to be indexed (with 1Million instances each), it is better, the master should be a beefy box, with lots of RAM and processing power.. correct me if I am wrong.

thanks!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 2:17 pm 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
skalyana1006 wrote:
Can we have one indexwriter per partition (if we do shards)?

What I am trying to do is get as much parallelism as possible in indexing.

I am not sure if sharding is the solution for your problem. If you want to increase indexing speed you might want to have a look at the hibernate.search.worker.execution option and set it to async. Indexing happens then in a separate thread. However, this option is normally intended for the case where indexing and search are on the same machine and you want to ensure fast response times for searches. In a master slave configuration the situation is slightly different.

The same caveat really applies for sharding. In fact searches may become slower due to sharding since the index will consists of more files.

In case you are not trying to solve a particular performance problem I would recommend to start of with a simple master/slave configuration and see how it performs. Take a benchmark and use it as baseline for configuration changes.

Another thought - even if you have many entities you will probably only index all the data once (or maybe at regular time intervals). The rest of the time you will only have incremental index updates.

Quote:
Also, if we are talking 5 - 10 entity types to be indexed (with 1Million instances each), it is better, the master should be a beefy box, with lots of RAM and processing power.. correct me if I am wrong.

Sure, the bigger the better. RAM being more important though.

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 3:35 pm 
Newbie

Joined: Wed Jul 09, 2008 8:55 pm
Posts: 9
Thanks again for taking time.


Last but not least, Is there a plan to make the search provider pluggable (is there already a way? say, to plugin google appliance, oracle text) instead of lucene? I love the annotations, interceptor based indexing in hibernate search though.

We also have full JBoss support, would that be a preferred way to get the questions answered?

Thanks!!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 11, 2008 5:12 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

interesting question. My answer would be no, the search provider will not be pluggable. The bond between Hibernate and Lucene is just too strong. There are many extension point in Hibernate Search, but replacing Lucene is not possible - at least not yet.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.