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?
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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!