Question

How to create load balance without loss of data

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.


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,

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.