-
Notifications
You must be signed in to change notification settings - Fork 155
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
Support for soft RAM limit? #56
Comments
Hey, Just acknowledging here that we saw the question. We're discussing this, but we don't have an exact plan yet. |
This is appears to be a quick attempt at doing that: https://github.com/KimMachineGun/automemlimit |
GOMAXPROCS and GOMEMLIMIT are environmental values that can help the application's Go Runtime to perform better. In Kubernetes manifests, we could easily (and naively) set
However, the Go documentation has this note:
Examples of these sources might include:
As a result, it would be best if we could correctly introspect the container's memory limit and set Also, I believe the Kubernetes API expects values to omit the |
@rabbbit any update on your internal discussions? |
hey folks, we've internally developed a system that automatically detects and sets GOMEMLIMIT and decided to not put that code on automaxprocs. The main rationale behind that decision is because this library, as its name suggests, detects max "procs", not memlimit. We could open-source the internal library we're using, but we have a requirement of having to run something for over some period of time before we can open source them because we don't want to open source something that hasn't been battle-tested internally : ) Hope that makes sense, and we may reconsider open sourcing the internal library we're using in the future, but this is what we've decided for now. I won't close this issue as it's something we may still consider in the future. Thanks. |
Happy Holidays (and anniversary) 😉 how did it go? |
Hello 👋🏻
Are there any plans to support the soft RAM limit introduced in Go 1.19?
(Either in this library or a new one)
The text was updated successfully, but these errors were encountered: