如何在不停机的情况下合并两个 Cassandra 集群?
我们有两个具有不同 cluster_name 的 Cassandra 集群,它们不断接收不同的数据。
集群A => keyspaceA
集群 B => keyspaceB
我们希望通过创建一个额外的集群,然后从第一个集群复制数据,然后从第二个集群复制数据,或者通过将数据从集群 B 复制到集群 A 来合并两个集群。 这两种解决方案都会导致第二个集群停机以设置节点。
是否可以在不停机的情况下合并两个 Cassandra 集群?
We have two Cassandra clusters with different cluster_name that continuously receive different data.
Cluster A => keyspaceA
Cluster B => keyspaceB
We are looking to merge the two clusters either by creating an additional cluster and then replicate data from the first cluster and then from the second cluster, or by replicating data from cluster B to cluster A.
Both solutions would cause downtime for the second cluster in order to set up the nodes.
Is it possible to merge the two Cassandra clusters with no downtime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你永远不应该这样做。这是一个非常糟糕的主意。
首先,一旦节点启动,就无法更改集群的名称 (
cluster_name
)。其次,尝试通过将正在运行的节点添加到另一个集群来重新配置它会“毒害”集群的架构并导致全部数据丢失。
不建议、不支持或测试此操作。不要尝试这样做。干杯!
You should never, ever do this. This is a very bad idea.
First of all, it is not possible to change the name of a cluster (
cluster_name
) once a node has been started.Second, attempts to re-provision a running node by adding it to another cluster will "poison" the cluster's schema and result in full data loss.
This operation is not recommended, supported or tested. Do not attempt to do it. Cheers!