You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Alexander Wallace <aw...@rwmotloc.com> on 2007/10/17 23:56:43 UTC

lucene index in a cluster.

Hi All!

We use lucene 2.0.0 as the search index of our portal (liferay based)  
and are trying to use it correctly in a cluster...

I'm very foggy on wether i should share the index file using NFS (the  
servers run linux) or wether we should try the jdbc store...

We currently have the index in an NFS mounted volume, however i'm  
pretty sure that the servers are not sharing locks, and don't know  
that the other node exists... Both servers read and write to the  
index freely currently.

Can you give me advise as to what's best in this setup (share nfs vs  
jdbc) and how to make the nodes in the cluster know about each other  
so that they don't step on each others feet?

Pointers to documentation are very welcome too!

Thanks a lot in advance for your response!


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: lucene index in a cluster.

Posted by Chris Lu <ch...@gmail.com>.
http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/index/IndexDeletionPolicy.html

This only works for Lucene 2.2 and later, not available if you need to used
Lucene 2.0.

-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes

On 10/17/07, Alexander Wallace <aw...@rwmotloc.com> wrote:
>
> Thanks a lot for the response!
>
> Is there some special config that needs to be done to share the locks
> or just point both servers to the same location ?
>
> Pointers to docs would help a great deal too...
>
> Thanks again!
>
> On Oct 17, 2007, at 5:54 PM, Chris Lu wrote:
>
> > To my experience from a project, using software DBSight, Lucene
> > runs well on
> > a SAN environment.
> > No experience of a NFS, but I know many indexing errors caused by
> > NFS. Maybe
> > the new index delete policy helps in latest version of Lucene.
> >
> > --
> > Chris Lu
> > -------------------------
> > Instant Scalable Full-Text Search On Any Database/Application
> > site: http://www.dbsight.net
> > demo: http://search.dbsight.com
> > Lucene Database Search in 3 minutes:
> > http://wiki.dbsight.com/index.php?
> > title=Create_Lucene_Database_Search_in_3_minutes
> >
> > On 10/17/07, Alexander Wallace <aw...@rwmotloc.com> wrote:
> >>
> >> Hi All!
> >>
> >> We use lucene 2.0.0 as the search index of our portal (liferay based)
> >> and are trying to use it correctly in a cluster...
> >>
> >> I'm very foggy on wether i should share the index file using NFS (the
> >> servers run linux) or wether we should try the jdbc store...
> >>
> >> We currently have the index in an NFS mounted volume, however i'm
> >> pretty sure that the servers are not sharing locks, and don't know
> >> that the other node exists... Both servers read and write to the
> >> index freely currently.
> >>
> >> Can you give me advise as to what's best in this setup (share nfs vs
> >> jdbc) and how to make the nodes in the cluster know about each other
> >> so that they don't step on each others feet?
> >>
> >> Pointers to documentation are very welcome too!
> >>
> >> Thanks a lot in advance for your response!
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: java-user-help@lucene.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: lucene index in a cluster.

Posted by Alexander Wallace <aw...@rwmotloc.com>.
Thanks a lot for the response!

Is there some special config that needs to be done to share the locks  
or just point both servers to the same location ?

Pointers to docs would help a great deal too...

Thanks again!

On Oct 17, 2007, at 5:54 PM, Chris Lu wrote:

> To my experience from a project, using software DBSight, Lucene  
> runs well on
> a SAN environment.
> No experience of a NFS, but I know many indexing errors caused by  
> NFS. Maybe
> the new index delete policy helps in latest version of Lucene.
>
> -- 
> Chris Lu
> -------------------------
> Instant Scalable Full-Text Search On Any Database/Application
> site: http://www.dbsight.net
> demo: http://search.dbsight.com
> Lucene Database Search in 3 minutes:
> http://wiki.dbsight.com/index.php? 
> title=Create_Lucene_Database_Search_in_3_minutes
>
> On 10/17/07, Alexander Wallace <aw...@rwmotloc.com> wrote:
>>
>> Hi All!
>>
>> We use lucene 2.0.0 as the search index of our portal (liferay based)
>> and are trying to use it correctly in a cluster...
>>
>> I'm very foggy on wether i should share the index file using NFS (the
>> servers run linux) or wether we should try the jdbc store...
>>
>> We currently have the index in an NFS mounted volume, however i'm
>> pretty sure that the servers are not sharing locks, and don't know
>> that the other node exists... Both servers read and write to the
>> index freely currently.
>>
>> Can you give me advise as to what's best in this setup (share nfs vs
>> jdbc) and how to make the nodes in the cluster know about each other
>> so that they don't step on each others feet?
>>
>> Pointers to documentation are very welcome too!
>>
>> Thanks a lot in advance for your response!
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: lucene index in a cluster.

Posted by Chris Lu <ch...@gmail.com>.
To my experience from a project, using software DBSight, Lucene runs well on
a SAN environment.
No experience of a NFS, but I know many indexing errors caused by NFS. Maybe
the new index delete policy helps in latest version of Lucene.

-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes

On 10/17/07, Alexander Wallace <aw...@rwmotloc.com> wrote:
>
> Hi All!
>
> We use lucene 2.0.0 as the search index of our portal (liferay based)
> and are trying to use it correctly in a cluster...
>
> I'm very foggy on wether i should share the index file using NFS (the
> servers run linux) or wether we should try the jdbc store...
>
> We currently have the index in an NFS mounted volume, however i'm
> pretty sure that the servers are not sharing locks, and don't know
> that the other node exists... Both servers read and write to the
> index freely currently.
>
> Can you give me advise as to what's best in this setup (share nfs vs
> jdbc) and how to make the nodes in the cluster know about each other
> so that they don't step on each others feet?
>
> Pointers to documentation are very welcome too!
>
> Thanks a lot in advance for your response!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>