如何禁用现有的Cassandra群集中的vnode? [英] How to disable vnodes in an existing cassandra cluster?

查看:532
本文介绍了如何禁用现有的Cassandra群集中的vnode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DSE文档说明禁用vnode,但我相信这是在设置新集群的上下文中。是否可以在现有集群上禁用vnodes而不丢失数据?是否有程序?

The DSE documentation says this to disable vnodes but I believe it is in the context of setting up a new cluster. Can vnodes be disabled on an existing cluster without loss of data? Is there a procedure for this?

禁用虚拟节点

虚拟节点:

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

In the cassandra.yaml file, set num_tokens to 1. num_tokens: 1 Uncomment the initial_token property and set it to 1 or to the value of a generated token > for a multi-node cluster.


推荐答案


  1. 如果你在这个问题上遇到了问题,正在使用DseSimpleSnitch,它根据节点类型自动分配DC,您需要将所有现有节点和新节点更改为其他节点(例如GossipingPropertyFileSnitch)。否则,您将启动的所有新节点将被简单地添加到已启用vnode的现有DC。您可以在/dse.yaml

  1. If you are using DseSimpleSnitch which auto-assigns the DC based from node type, you need to change the snitch all of existing and new nodes to something else (e.g. GossipingPropertyFileSnitch). Otherwise, all new nodes that you'll start will simply be added to the existing DC which has vnodes enabled. You can change this setting in /dse.yaml

计算并分配令牌到新节点

Compute and assign tokens to the new nodes

我可能错过了一些步骤。请务必检查此处提供的步骤:
禁用虚拟节点在现有的Solr DC中

I might have missed some steps. Be sure to check the steps given here: Disabling virtual nodes in an existing Solr DC

这篇关于如何禁用现有的Cassandra群集中的vnode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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