Question

Need more specifics on apps (scaling, etc.)

I found deploying an app is very easy and I like the process, but there’s very little information on how they work.

  1. Can I automatically scale up to a certain number of containers?
  2. Does adding more containers automatically load-balance across them?
  3. My app logs to its own directory… is there any way to access it or do I need to create a web-based way to access them?

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
July 26, 2023
Accepted Answer

Hi there 👋,

Happy to hear that you’ve liked the App Platform so far!

To answer your questions:

  • There is no automatical scaling up, you can either use the DigitalOcean Control Panel to change the number of containers, or you can use either the DigitalOcean API or the doctl CLI tool to do this programmatically:

https://docs.digitalocean.com/products/app-platform/how-to/scale-app/

  • The traffic will be automatically load-balanced across the containers, so you will not have to do any changes on your end. Except if your app uses sessions, then in this case it would be best to use a service like Redis to store your sessions there so that they could be shared across all containers.

  • As the storage of the containers in the App Platform is ephemeral, meaning that no data is persisted across restarts, I would suggest using an S3 storage to store your logs like the DigitalOcean Spaces. Or if you don’t need to persist your logs, as you mentioned you could create a web-based way of accessing them while they are still available inside the containers.

UPDATE: The App Platform now supports CPU based autoscaling:

https://www.digitalocean.com/blog/introducing-cpu-based-autoscaling-app-platform

Hope that this helps!

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

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
DigitalOcean Cloud Control Panel