如何在不停机的情况下合并两个 Cassandra 集群?

发布于 2025-01-16 15:14:39 字数 254 浏览 1 评论 0原文

我们有两个具有不同 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一曲琵琶半遮面シ 2025-01-23 15:14:39

你永远不应该这样做。这是一个非常糟糕的主意。

首先,一旦节点启动,就无法更改集群的名称 (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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文