Right now i’m using single droplet but now i want to make 2 droplet with load balancing… and im using PHP + Mysql web application with DOMAIN so could you please tell me how to i configure or what i do best to make Auto Sync like if any new record Insert in DATABASE that will me auto update in second droplet without any manual steps....?

is there any way to handle this…?

waiting your reply


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.

Submit an Answer
2 answers

Hello, @numantahir1

What you can do is to setup a database replication between the two droplets. In this way the records will be replicated between the two databases as per your request.

You can have a look at our existing tutorial for the Master-Slave replication in MySQL:


One thing to keep in mind is to backup your data before starting and also taking a snapshot of your droplet as well. In this way if anything goes offhand you can quickly restore it backup to how it was.


by Etel Sverdlov
MySQL replication is a process that allows you to easily maintain multiple copies of a MySQL data by having them copied automatically from a master to a slave database. This can helpful for many reasons including facilating a backup for the data,a way to analyze it without using the main database, or simply as a means to scale out. This tutorial will cover a very simple example of mysql replication—one master will send information to a single slave.

Thank you for reply… as per your reply i like this way but with this i also want Files and Images Sync system to 1 droplet to and other Automatically… basically i have deploy a PORTAL that use multiple clients and Agents so if i move to Load balance there only 1 issue how to update both in same time… like if i change or modify or any Agent/Client upload any Images then this images should be sync in Both Droplet.... if you got my point what im trying to say so possible have any way to Auto…?