简体   繁体   English

更喜欢多个Solr应用程序还是单个应用程序多核设置?

[英]Prefer multiple Solr applications or single application multicore setup?

What are the pros and cons of having multiple Solr applications for completely different searches comparing to having a single Solr application but have different searches setup as separate cores? 与拥有单个Solr应用程序但将不同的搜索设置作为单独的核心相比,拥有多个Solr应用程序进行完全不同的搜索有什么利弊?

What is the Solr's preferred method? Solr的首选方法是什么? Is having a single Solr application with multicore setup (for various search indexes) is always a right way? 使用具有多核设置(用于各种搜索索引)的单个Solr应用程序是否总是正确的方法?

There is no preferred method. 没有首选的方法。 It depends on what you are trying to solve. 这取决于您要解决的问题。 So by nature, can handle multiple cores on the single Solr instance or can have cores across Solr application servers , can handle the collection (in solrcloud). 因此,从本质上讲,可以在单个Solr实例上处理多个核心,也可以在Solr应用程序服务器上拥有多个核心,可以处理集合(在solrcloud中)。

Having said that, usually you go for 1) Single core on a Solr instance if your data is fairly small - few million documents. 话虽如此,通常您会选择1)如果您的数据很小-几百万个文档,则在Solr实例上使用单核。 2) You go for multiple solr instances with a single core on each if you want to shard your data incase of billions of documents and want to get better indexing and query performance. 2)如果要在数十亿个文档的情况下分拆数据,并希望获得更好的索引和查询性能,则每个实例都具有一个核心。 3) You go for multiple cores on single or multiple solr instances if you have multitenancy separating, example a core for each customer or a for catalog another core for skus. 3)如果您有多租户分离,则可以在单个或多个Solr实例上使用多个核心,例如,每个客户的核心或用于目录的另一个skus核心。

It depends on your use case, the volume of data and query response times etc. 这取决于您的用例,数据量和查询响应时间等。

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

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