Question

Dynamic VM scaling during peak times

I’m setting up a Droplet to run Docker containers with UI Bakery self-hosted. I anticipate peak loads on the last business day of each month, possibly necessitating a higher-tier Droplet, while expecting moderate loads on other days. Is it possible to dynamically scale the VM up for that specific day and then scale it down the following day?


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.

Bobby Iliev
Site Moderator
Site Moderator badge
March 23, 2024

Hey there!

As of the time being, the DigitalOcean Droplets do not offer auto-scaling out of the box. While you can manually resize your Droplet, this process isn’t automatic and involves some downtime since it requires a power-off. However, for a more seamless and automated scaling experience, I would recommend considering DigitalOcean’s Managed Kubernetes as an alternative solution:

https://www.digitalocean.com/products/kubernetes

DigitalOcean’s Managed Kubernetes service includes an autoscaling feature that can dynamically adjust the number of nodes in your cluster based on the workload. This way, during your peak load times, the cluster can automatically scale up to meet demand, and then scale down when the demand decreases, optimizing your resource usage and costs:

https://docs.digitalocean.com/products/kubernetes/how-to/autoscale/

Here’s how you could approach this with DigitalOcean Managed Kubernetes:

  1. If your application is already containerized with Docker, transitioning to Kubernetes would be the next logical step. Kubernetes excels at orchestrating containerized applications and can handle the scaling for you.

  2. Within your Kubernetes cluster, you can set up Horizontal Pod Autoscaling to automatically scale your application pods based on metrics like CPU or memory usage. Additionally, you can configure the cluster autoscaler to add or remove nodes from your cluster based on the needs of your pods.

  3. Since you anticipate peak loads on the last business day of each month, you can monitor and adjust the scaling thresholds accordingly to ensure that the scaling occurs smoothly and meets the demand.

Hope that this helps and let me know if you have any questions!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more