several existing strategies to clustering Lucene
All of this impacts how Lucene works in a cluster. Each node performing the search needs access to the index. To make search work in a clustered environment we must provide this. There are 3 ways of doing this.
- Use a shared file system between all nodes, and use FSDirectory.
- Use indexes on the nodes local file system and a synchronization strategy.
- Use a database using JDBCDirectory
- Use a distributed file system (eg Google File System, Nutch Distributed File System)
- Use a local cache with backup in the Database
用Terracotta 集群Lucene(Clustering Lucene with Terracotta)
www.theserverside.com昨天发布了一个消息:Terracotta 宣布他们发布的集群JVM技术Terracotta DSO,在Terracotta Public License下开放源代码。之前Orion Letizi和Steve 已经试过用Terracotta集群Lucene索引,并且工作得挺好。 Clustering Lucene和 Clustering Lucene, Part II: An Example You Can Try Yourself是Orion Letizi发布的用Terracotta集群Lucene的Blog。看来用Terracotta来集群Lucene是个选择。
Terracotta 已经开通了一个社区站点 http://www.terracotta.org/,在那里开发者可以下载集群代码和获得社区支持。
