Giter Site home page Giter Site logo

Comments (3)

yanglbme avatar yanglbme commented on May 6, 2024

前面也说明了,就是说刚开始建了这个 n 多个(逻辑)库,可能在同一台 DB 服务器上。之后 DB 服务器新增扩容,就把原先的一些 DB 迁移到新的 DB 服务器上。

from advanced-java.

hunao0221 avatar hunao0221 commented on May 6, 2024

前面也说明了,就是说刚开始建了这个 n 多个(逻辑)库,可能在同一台 DB 服务器上。之后 DB 服务器新增扩容,就把原先的一些 DB 迁移到新的 DB 服务器上。

感谢,又仔细看了一遍,算是明白了!

from advanced-java.

472630126 avatar 472630126 commented on May 6, 2024

我有一个疑问,为什么说成倍扩容了之后, 路由逻辑不需要改变呢。 比如我原来是32个库 , 扩容成 64 , 那不是要把 orderId%32 改成 orderId%64吗 ? 还有这样的话, 依然会有数据会落到 前32个库 。 这样扩容,每扩容一次,前面的库的数据都会增加, 不用做均衡迁移吗。

from advanced-java.

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.