返回主题:数据集成与分拆:一份真源与多份衍生

知识卡片

普通读书笔记卡 · 3424

复制切换时明确唯一写入真源

理解等级:高级

用数据库复制搬迁时,先追平新集群,再指定新主库并切换写入真源;之后切断旧路径、核对数据并退役旧表。不能长期让两个系统都被视为权威。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第10章《Data Migrations》(源文件:`_epub-src/OPS/ch10.xhtml`,归一化正文 [21101:25277)) - 结论依据:原文描述从共享库复制到隔离集群、提升新主库与清理旧数据的顺序。 - 原始内容:Once all the replicas on the isolated DB are in sync, you designate one replica to be the new master, then switch the source of truth to the new cluster, cutting off access from the isolated DB to M1, R1 and R2, cleaning up and decommissioning the old data in the old cluster.