By Hiren Kavad
Technical Writer, Technical Content Creator
MySQL cluster (NDB Cluster) now supports auto sharding across data nodes, does DigitalOcean Managed MySQL implements MySQL NDB cluster internally or they use another technique.
Does it supports auto sharding across nodes or the just replicate data across nodes and you need to scale database vertically ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Currently the managed database service from DigitalOcean does not provide support for automatically sharding your database.
Typically sharding is great when you are dealing with a massive data set that is no longer feasible to run on a single instance - think something along the lines of Twitter.
It’s benefits are obvious in that it was designed to basically serve datasets that can’t fit on a single node, however you can run into hotspots, where specific shards are being accessed more than others depending on the data that resides there.
This is why in 9 out of 10 cases you are better off just scaling with master slave replicas to horizontally and equally distribute your load. This will ensure consistent performance across each of your replicas and you won’t have to rebalance the shards or deal with hot spot issues.
Only in the case that you can’t fit all of your data on a single node would it be advisable to look into sharding, but at that point given the size of your dataset, you have no alternative but to shard.
So the basic answer is use sharding when you have no other choice, otherwise just scale horizontally with slave replicas.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.