Giter Club home page Giter Club logo

Comments (2)

8wy1985659 avatar 8wy1985659 commented on July 30, 2024

迁移:主库迁移一般在MHA切换后修改主库url,通过配置动态刷新将流量改到新的主库
从库迁移数据同步完成后把心从库节点上线,老从库节点下线即可,也是通过动态刷新完成
扩容:1.迁库同上面的迁移方案 数据库迁移完成后把zebra配置中的url改掉即可
2.这个问题跟适用方规则设计有关,
(1)使用方设计如果是简单的使用hash均摊数据,一般的操作就是搭一套新集群重新划分流量同步,等新集群数据追上老集群再停服切换。
(2)使用方预留了未来新的分表键逻辑,在规则上允许数据分布不均匀,这时候可以在业务层操作生成新的分表id,根据规则自动路由到新库,避免数据重新划分,就不需要迁移数据了。

from zebra.

wangdongyun avatar wangdongyun commented on July 30, 2024

(^o^)/~

Thanks.

from zebra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.