How to create load balance without loss of data

Posted January 11, 2020 346 views
DigitalOcean Accounts

Hello, I just migrated my domain to the digital ocean. Currently using 8gb ram and 4cpu [ shared cpu]. When it reaches 100 online visitors at a time, then the site goes down and loading very slowly. To overcome this I resize my droplet to 32gb ram droplet. Then also it downs several times when it reaches 200 visitors a time. My problem is I can’t reize droplet to dedicated CPU as it has less disk space. The shared CPU droplet is not working for me. So, please let me know how to create a load balance without losing data.

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
1 answer


What you could do is just:

  1. Create a LoadBalancer
  2. Create a new Droplet with the necessary requirements
  3. Migrate your website to the new Droplet
  4. Configure your LoadBalancer so that it balances the traffic to the new Droplet
  5. Test your site with a hosts file
  6. Point your domain to the LoadBalancer

That way there should be no downtime at all.