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:
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.
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:
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.