Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Al Faller
lucene index on shared disk (NFS)
13. April 2010 04:55
Antwort

Al Faller

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 1. Oktober 2009

Neue Beiträge

Hi All -

Is it acceptable to have clustered servers all pointing at the same lucene index on an NFS mounted volume?

Thanks!

Al
William Fleming
RE: lucene index on shared disk (NFS)
10. Januar 2011 01:26
Antwort

William Fleming

Rang: Regular Member

Nachrichten: 180

Eintrittsdatum: 15. September 2010

Neue Beiträge

did you get this working? I am in the process of trying to set this up and would be very interested to see if you got it working. Did you move the whole data folder or just the lucene folder?

Thanks

William
Al Faller
RE: lucene index on shared disk (NFS)
10. Januar 2011 10:16
Antwort

Al Faller

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 1. Oktober 2009

Neue Beiträge

I went a different route. I ended up using clusterlink with an index on each application server.
Mika Koivisto
RE: lucene index on shared disk (NFS)
10. Januar 2011 11:27
Antwort

Mika Koivisto

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1512

Eintrittsdatum: 7. August 2006

Neue Beiträge

This only works if you have only one node that is writing to the index. Other nodes must be read only. This is because lucene on the first node will lock the index and other nodes can't write to it.
William Fleming
RE: lucene index on shared disk (NFS)
14. Januar 2011 02:12
Antwort

William Fleming

Rang: Regular Member

Nachrichten: 180

Eintrittsdatum: 15. September 2010

Neue Beiträge

Thanks for the info.

William
Stephan Huber
RE: lucene index on shared disk (NFS) or database
19. Januar 2011 02:11
Antwort

Stephan Huber

Rang: Junior Member

Nachrichten: 28

Eintrittsdatum: 27. März 2009

Neue Beiträge

Hi Mika,

what happens in a clustered environment when for all of the three servers:

lucene.store.type=jdbc
index.read.only=false

Is it a problem? The DBMS (Oracle) should handle read and write from different servers, isn't it?
How much slower is using the database for lucene instead of a file system?

Thanks in advance,
Stephan
Mika Koivisto
RE: lucene index on shared disk (NFS) or database
25. April 2011 15:46
Antwort

Mika Koivisto

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1512

Eintrittsdatum: 7. August 2006

Neue Beiträge

Sorry for not answering sooner.

With jdbc several servers can write to the index. I haven't done any performance tests agains jdbc index so I don't have any numbers on how much slower it is. If you have a lot of data in the index (documents are also indexed) and you rely on the search then I would recommend using Solr instead. It's a dedicated search server which can be scaled much easier than Lucene by itself.
Hitoshi Ozawa
RE: lucene index on shared disk (NFS) or database
25. April 2011 16:10
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

I think I was getting errors when I did that. Especially when on server did a recreate index.

Setting only one node to have write priviledge would solve the problem but then, other nodes would not be able to accept any posts including document libray uploads.