Question

App Platform get CPU usage internally

We are running an app that takes work from a queue and need a way for the application to know the CPU load of the node it is running on so it doesnt take more work than it can handle.

Strangely it appears the machines allocated in the App Platform dont report CPU usage in any way that i can find. If i run top all of the CPU summary stats at the top say 0:

CPU: 0% usr 0% sys 0% nic 0% idle 0% io 0% irq 0% sirq


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
August 24, 2022

Hi there,

I believe that due to the nature of the architecture the App Platform does not support resource usage reporting with tools like PM2 in Node.js apps and CLI tools like top. Instead, you could use the Insights tab to see insights such as memory and CPU usage:

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

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

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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