Question

What are my options for horizontally scaling a live website which is running slowly

I have a website that is live running on a single droplet (CPU-Optimized / 8 GB / 4 vCPUs) but with 800+ users currently accessing the site it is running very slowly.

From bits I’ve read on here, it would seem that I need to add additional droplets and a load balancer? Is that correct.

Basically I’m looking for a way to increase resources as quickly as possible! Any help or advice would be gratefully received!


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 there @FishFash,

I could suggest a couple of things:

  • Move your database to a separate database server or a Managed Database cluster - that way you will offload the load from your webserver
  • As you mentioned spin up another copy of your Droplet and use a load balancer to distribute the traffic
  • Add a caching solution like Redis for example. You can either install Redis on a separate Droplet or use the managed Redis clusters
  • Add a CDN like Cloudflare to cache your static files and reduce the overall load on your servers

Hope that this helps! Regards, Bobby