Report this

What is the reason for this report?

How to create load balance without loss of data

Posted on January 11, 2020

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.



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.

Hi,

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.