简体   繁体   English

lucene 索引文件随机崩溃,需要重新索引

[英]lucene index file randomly crash and need to reindex

How you all deal with such issues of occasionally need to reindex?你们都是如何处理这种偶尔需要重新索引的问题的? what recommendation do you suggest to minimize this?你有什么建议可以尽量减少这种情况?

If you have a really large dataset, then i would recommend you to maintain a second server that has a backup of your index, so that you can have no single point of failure .如果您有一个非常大的数据集,那么我建议您维护第二台服务器来备份您的索引,这样您就不会出现单点故障 You can synchronize this "backup" when ever you finish re-indexing and thus serve as a second search server that shares requests.您可以在完成重新索引时同步此“备份”,从而充当共享请求的第二个搜索服务器。 If one fails, then the other can back-it-up.如果一个失败,那么另一个可以备份。 This is a simple yet robust approach to your problem and recommended for small-to-medium setups.这是解决您的问题的一种简单而强大的方法,建议用于中小型设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM