[Horizontal Scaling] How to synchronize multiple MySql managed clusters


TL;DR How do i synchronize 2 mysql managed clusters that have 1 master and 5 slaves each?

I am currently planning to deploy my web application in digital ocean and am planning to use mysql managed database cluster to host my data. Relatively big traffic is expected in the not-so-distant future and thus I am planning to horizontally scale using master-slave replicas. While reading the docs i saw that a given mysql cluster can have up to 5 read-only nodes and that an account can have up to 10 clusters.

So, once the load is too big and writes to the database are quite often, a second master node will be needed, creating two clusters, with one master each and 1-5 slaves. How can i keep the data consistent between the two clusters so that users don’t lose their data?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @GCTsala,

I don’t think that this is yet possible. However, I was just watching the DigitalOcean Deploy Conference where it was announced that there are plans to introduce multi-master clusters.

For more information make sure to join the Deploy conference:

Regards, Bobby