We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我有两个问题: 迁移:
扩容: 在分库分表的方案中,zebra是如何支持扩容的,这里面可能有两个方面
更改路由
The text was updated successfully, but these errors were encountered:
迁移:主库迁移一般在MHA切换后修改主库url,通过配置动态刷新将流量改到新的主库 从库迁移数据同步完成后把心从库节点上线,老从库节点下线即可,也是通过动态刷新完成 扩容:1.迁库同上面的迁移方案 数据库迁移完成后把zebra配置中的url改掉即可 2.这个问题跟适用方规则设计有关, (1)使用方设计如果是简单的使用hash均摊数据,一般的操作就是搭一套新集群重新划分流量同步,等新集群数据追上老集群再停服切换。 (2)使用方预留了未来新的分表键逻辑,在规则上允许数据分布不均匀,这时候可以在业务层操作生成新的分表id,根据规则自动路由到新库,避免数据重新划分,就不需要迁移数据了。
Sorry, something went wrong.
(^o^)/~
Thanks.
No branches or pull requests
我有两个问题:
迁移:
扩容:
在分库分表的方案中,zebra是如何支持扩容的,这里面可能有两个方面
更改路由
The text was updated successfully, but these errors were encountered: