1

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.

Don
  • 97
  • 1
  • 1
  • 8

1 Answers1

1

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/.

Sugu Sougoumarane
  • 406
  • 1
  • 3
  • 7
  • 1
    thank you for your quick response. Is there a way to automate this process? – Don Mar 05 '20 at 02:52
  • 1
    @SajMan Vitess doesn't automate parts that require provisioning of new hardware. This is because those are very platform specific. You can use kubernetes for facilitating those, or a hosted solution like PlanetScaleDB. But once you've provisioned, it's down to a handful of commands. – Sugu Sougoumarane Mar 05 '20 at 17:15