在现有的Solr DC中禁用虚拟节点 [英] Disabling virtual nodes in an existing Solr DC

查看:78
本文介绍了在现有的Solr DC中禁用虚拟节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有以下拓扑的现有集群:

I have an existing cluster with the following topology:

  1. DC Cassandra:2个节点
  2. DC Solr:5个节点

当前所有节点都使用vnode.我想出于性能原因禁用Solr DC中的vnode.

All of the nodes currently use vnodes. I want to disable vnodes in the Solr DC for performance reasons.

根据此文档,禁用vnodes:

According to this document, to disable vnodes:

  1. 在cassandra.yaml文件中,将num_tokens设置为1
  2. 取消注释initial_token属性并将其设置为1或多节点群集的已生成令牌的值.

这就是我所要做的吗?(没有维修,没有清理,什么都没有?)对于我来说似乎太过真实了.

Is this all that I need to do? (no repair, no cleanup, no anything?) Seems too good to be true for me.

对于令牌分配,我应该使用python代码在此处找到(针对Murmur3)还是应该重用该节点当前拥有的vnode中的现有令牌之一?

As for token assignment, should I use the python code found here (for Murmur3) or should I reuse one of the existing tokens from the vnodes that the node currently has?

推荐答案

禁用vnode的唯一方法是:

The only way to disable vnodes is to do: http://www.datastax.com/documentation/cassandra/1.2/cassandra/configuration/configVnodesProduction_t.html
in the reverse. Make a new Solr dc with vnodes off and switch over to it.

这篇关于在现有的Solr DC中禁用虚拟节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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