New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine better ram default #68
Comments
oh, that’s useful. Previously I’ve had to map “ulimit” results to different dyno types. This seems better. |
@schneems Just checking if this is on your radar to incorporate in this library? Thank you for creating this library! |
@oyeanuj want to send me a PR? |
Unfortunately, I don't understand Heroku spaces or puma much to be able to PR this. Maybe @freeformz can? |
On a standard-1 dyno:
and |
FWIW, you can determine the amount of available RAM in MB in a Heroku Dyno (or probably any container that uses cgroups in which that cgroup data is exposed in the container) with:
Integer(Integer(IO.read("/sys/fs/cgroup/memory/memory.limit_in_bytes")) / 1024 / 1024)
The current amount of memory being used by all processes in a dyno can be found in
/sys/fs/cgroup/memory/memory.usage_in_bytes
. This is only currently exposed in private space dynos though.The text was updated successfully, but these errors were encountered: