如何禁用现有的Cassandra群集中的vnode?

编程入门 行业动态 更新时间:2024-10-09 02:27:51
本文介绍了如何禁用现有的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.

推荐答案

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

  • 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?

    本文发布于:2023-11-25 21:27:12,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1631409.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Cassandra   vnode

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!