Question

Scaling based on average load

I want to scale my application (by opening a new droplet) based on the average load reading. Is it a good idea to use this approach? What will be a high load value for a 1 core droplet? Above 1? But for a 2 cores droplet will be above 2?


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.

It depends on what resources your application uses the most, e.g. RAM, CPU, Disk IOPS, etc. <br> <br>Unfortunately I don’t have experience with auto scaling however I’m sure you can create a bash script that reads the load averages and uses the bash script from that article to scale up if needed.

I have read the articles, but they are more focused on ‘how to scale’ then ‘when to scale’. I’m planning to move to DigitaOcean a php application that needs more processing power than a regular website. It is running on a dedicated server now but it becomes overloaded on traffic spikes. I need a scalable solution. I want to make the php app to be self-aware when the host is overloaded. I’m looking for a simple solution and I was thinking to use the server load averages but I’m not sure what value would indicate that the droplet is overloaded and based on this, to open a new droplet. My questions again: <br> <br>Based on the load averages, above which value should I open a new droplet? <br>Do you think I need more advanced monitoring tools for this or the server load average reading would be enough? <br>