Cassandra - 从群集中删除节点 [英] Cassandra - Removing a node from the cluster
问题描述
我有一个有三个节点的集群,我需要删除一个节点。在我实际删除它之前,如何确保要删除的节点的数据将被复制到另外两个节点?这是使用快照吗?
I have a cluster with three nodes and I need to remove one node. How can I make sure the data from the node to be removed will be replicated to the two other nodes before I actually remove it? Is this done using snapshots? How should I proceed?
推荐答案
从 doc
您可以使用 nodetool decommission 到
活节点或 nodetool removetoken (删除任何其他计算机)以删除
死节点。这将把旧节点负责
的范围分配给其他节点,并在那里复制适当的数据。如果使用
停用,则数据将从已退役的
节点流式传输。如果使用removetoken,数据将从剩余的
副本流式传输
You can take a node out of the cluster with nodetool decommission to a live node, or nodetool removetoken (to any other machine) to remove a dead one. This will assign the ranges the old node was responsible for to other nodes, and replicate the appropriate data there. If decommission is used, the data will stream from the decommissioned node. If removetoken is used, the data will stream from the remaining replicas
这篇关于Cassandra - 从群集中删除节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!