Skip to content
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

Set GO's soft memory limit when POLAR_MEMORY_LIMIT is set #126

Open
jorgebay opened this issue Nov 28, 2022 · 0 comments
Open

Set GO's soft memory limit when POLAR_MEMORY_LIMIT is set #126

jorgebay opened this issue Nov 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jorgebay
Copy link
Contributor

jorgebay commented Nov 28, 2022

We currently pass the k8s memory limits as environment variable.

We should rename it to POLAR_MEMORY_LIMIT_KIB and set debug.SetMemoryLimit() to 90% of that value.

@jorgebay jorgebay added the enhancement New feature or request label Nov 28, 2022
@jorgebay jorgebay changed the title Set GO's soft memory limit when BARCO_MEMORY_LIMIT is set Set GO's soft memory limit when POLAR_MEMORY_LIMIT is set Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant