简体   繁体   English

如何使用 Vitess 增加分片

[英]How to increase shards using Vitess

I have 4 shards in 4 different physical server.我在 4 个不同的物理服务器中有 4 个分片。 -40 40-80 80-c0 c0- Now I want to add two more shards. -40 40-80 80-c0 c0- 现在我想再添加两个分片。 How can I change key range and split the data.如何更改键范围并拆分数据。

In Vitess you have split or merge existing shards.在 Vitess 中,您可以拆分或合并现有的分片。 You do this by creating the target shards and migrating data from existing shards into the targets.为此,您可以创建目标分片并将数据从现有分片迁移到目标中。 This tutorial shows how to split shards: https://vitess.io/docs/user-guides/horizontal-sharding/ .本教程展示了如何拆分分片: https : //vitess.io/docs/user-guides/horizo​​ntal-sharding/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM