Lucene索引和Windows DFS复制 [英] Lucene index and Windows DFS replication

查看:75
本文介绍了Lucene索引和Windows DFS复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想定期在Web服务器上复制Lucene索引.除了Solr之外,我是否可以在Windows 2008服务器上设置DFS复制,然后使用它在负载平衡的Web服务器上复制索引?这种方法行得通吗,或者我将不得不在我的搜寻器代码中并行写入2个不同的索引器位置?

I want to replicate Lucene index on my web servers periodically. Apart from Solr, can I setup DFS replication on my Windows 2008 servers and use that to replicate my indexes over my load balanced web servers? Will that approach work or I will have to write parallely to 2 different indexer locations within my crawler code?

感谢您的帮助.

谢谢!

推荐答案

我不确定您的问题.无论使用哪种文件系统,都不能有两个编写者在同一位置写入.因此,如果您希望每个NLB服务器都写入同一位置,则不行,这可能行不通.

I'm not exactly sure of your question. You cannot have two writers writing to the same location no matter what file system you use. So if you want each of your NLB servers to write to the same location, no, that probably won't work.

如果只有一名作家,并且想要在许多服务器上复制其结果,那将可以工作,但是速度可能会慢很多(Lucene的主要建议之一是不使用网络文件系统).

If you just have one writer and want to replicate its results across many servers, that will work, but it will probably be quite a bit slower (one of the major Lucene recommendations is to not use networked file systems).

这篇关于Lucene索引和Windows DFS复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆