Is there a way to configuring Solr to run on Amazon S3 with the index files on S3 and not local storage?

主宰稳场 提交于 2019-12-12 18:06:43

问题


I would like to know if there is a way to configure Apache Solr to index files stored on S3 and also to keep the index files on S3 as well. I would like to have a load balanced (LD) scheme where multiple processors can share the master index. This would allow me to bring up additional EC2 instances with Solr and point them to a common repository and index.

I am using PHP and would greatly appreciate any ideas or suggestions.

Thanks.


回答1:


As for indexing files stored in AWS S3 see here. However, storing the Solr index in S3/EBS is something I did not try yet.. mounting a shared EBS volume might work.




回答2:


There's a new project called lucene-s3directory. It enables Lucene to read and write indices to/from AWS S3 directly and does not need a local filesystem. I'm pretty sure it can easily be adapted for Solr. It's pretty early stage so use with caution.

S3Directory dir = new S3Directory("my-lucene-index");
dir.create();
// use it in your code in place of FSDirectory, for example
dir.close();
dir.delete();


来源:https://stackoverflow.com/questions/9186137/is-there-a-way-to-configuring-solr-to-run-on-amazon-s3-with-the-index-files-on-s

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!