首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从cassandra 2.1迁移到scylla 4.5

从cassandra 2.1迁移到scylla 4.5
EN

Stack Overflow用户
提问于 2022-03-02 08:01:22
回答 1查看 144关注 0票数 0

制作:

  1. nodetool flush (on cassandra)
  2. nodetool snapshot name_snapshot ) (on cassandra)
  3. cqlsh [IP] "-e DESC SCHEMA" > orig_schema.cql ) (on cassandra)
  4. cqlsh [IP] --file 'orig_schema.cql' (on scylla)
  5. while IFS= read -r d; do sstableloader -cph 14 -j 14 -nb -nx -d [IP] ${d}/ done < <(find /dir_snapshot/keyspace/* -prune -type d)

))

但是数据被写入cassandra (不可能阻止应用程序写入cassandra),我如何在scylla中传输/抛出增量?我知道应用程序可以被配置为同时写入Cassandra和Scylla,但是现在数据之间的差距是4个月。将经过4个月积累的数据中的变化转移到Scylla是合乎逻辑的。

EN

回答 1

Stack Overflow用户

发布于 2022-03-02 17:48:36

您已经回避的内容--如果您不能将应用程序降下来进行维护--您将不得不使用应用程序进行切换。

这里的典型路径是将应用程序代码更改为同时写入两个集群(Cassandra & Scylla),同时继续从Cassandra读取。

在此过程中,您可以恢复数据,直到将双写部署到Scylla。

一旦Scylla集群和Cassandra集群包含相同数量的数据,您将更改应用程序以从Scylla读取和写入,并退出Cassandra集群

代码语言:javascript
复制
Step 1: Write C & S -> Read C
Step 2: Migrate old Data C -> S
Step 3: Write S -> Read S
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71319229

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档