我们可以在同一个数据中心中只有cassandra节点和solr启用的节点吗? [英] Can we have cassandra only nodes and solr enabled nodes in same datacenter?

查看:106
本文介绍了我们可以在同一个数据中心中只有cassandra节点和solr启用的节点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始solr,并希望你的建议在下面的情况。我们有2个数据中心,每个数据中心有3个节点(两个在不同的aws区域为位置优势)。我们有一个要求,他们问我是否我们可以在每个数据中心有2个solr节点。因此在每个数据中心将有2个solr节点和1个cassandra节点。我想知道如果它的罚款有这种设置,我很少困惑是否solr节点将有索引与它的数据吗?所有6个节点共享数据,4个solr节点将与数据一起有索引吗?请提供一些信息。感谢。

I just started with solr and would like your suggestion in below scenario. We have 2 data centers with 3 nodes in each data center(both in different aws regions for location advantage). We have a requirement for which they asked me if we can have 2 solr nodes in each data center. so it will be 2 solr nodes and 1 cassandra only node in each data center. I want to understand if its fine to have this kind of setup and I am little confused whether solr nodes will have data on it along with the indexes? does all 6 nodes share data and 4 solr nodes will have indexes on it along with data? Kindly provide some information on this. Thanks.

推荐答案

简短的答案是没有,这不会工作。 如果您在DC中的某个节点上开启DSE搜索,则需要为DC中的所有节点启用DSE搜索。

Short answer is no, this will not work. If you turn on DSE Search on one node in a DC you need to turn it on for all the nodes in the DC.

DSE Search会在节点本地存储的数据上构建lucene索引。假设您有一个带有RF1的3节点DC(节点只有1/3的数据),并且您只打开其中一个节点上的搜索。 1/3的搜索查询将失败。

DSE Search builds lucene indexes on the data that is stored local to a node. Say you have a 3 node DC with RF1 (the node only has 1/3rd of the data) and you only turn on search on one of the nodes. 1/3 of your search queries will fail.

你有一个相对较小的工作负载与松散的SLA(两个c *和搜索)和/或如果你过度配置,你可能很好地打开你的主要Cassandra节点上的搜索。但是,在许多情况下,c *工作负载和SLA严重,搜索查询会对cassandra性能产生负面影响(因为它们与同一硬件竞争)。

If you have a relatively small workloads with loose SLA's (both c* and search) and/or if you are over provisioned, you may be fine turning on Search on your main Cassandra nodes. However, in many cases with heavy c* workloads and tight SLA's, Search queries will negatively affect cassandra performance (because they are contending against the same hardware).

如果你想要搜索只能在物理DC中的三个节点中的两个启用,唯一的方法是将你的物理DC变为两个逻辑DC。在您的情况下,您会有:

If you want search enabled only in two out of your three nodes in a physical DC, the only way to do this is to actually split up your physical DC into two logical DC's. In your case you would have:

美国 - Cassandra

US - Cassandra

美国 - 搜索

新加坡 - Cassandra

Singapore - Cassandra

新加坡 - 搜寻

您的搜索查询和c *查询,并且还提供工作负载隔离在您的c *和搜索工作负载之间,因为它们与不同的OS子系统竞争。

This gives you geographic locality for your search and c* queries and also provides workload isolation between your c* and search workloads since they contend against different OS Subsystems.

这篇关于我们可以在同一个数据中心中只有cassandra节点和solr启用的节点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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