Search code examples
mysqlscalevitess

How to increase shards using Vitess


I have 4 shards in 4 different physical server. -40 40-80 80-c0 c0- Now I want to add two more shards. How can I change key range and split the data.


Solution

  • In Vitess you have split or merge existing shards. 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/.