Skip to content

Conversation

@aryanxgupta
Copy link

What this PR does:
Hi,
This PR implements the automemlimit feature requested in issue #7064.

I've followed the Prometheus implementation as a reference, adding the simple SetGoMemLimitWithOpts call at the start of cmd/cortex/main.go and using the project's logger. I did not add the complex flag/config logic which was mentioned in the reference PR.

Note on Tests:
I ran make test locally. The build succeeded and the tests for cmd/cortex passed. However, the test run failed in pkg/alertmanager and pkg/compactor. These appear to be unrelated, so I'm relying on the CI to run the full suite.

Which issue(s) this PR fixes:
Fixes #7064

Checklist

  • Tests updated (No new tests were needed for this change)
  • Documentation added (No documentation changes were needed)
  • CHANGELOG.md updated - I'm not sure if a changelog entry is needed for this. Please let me know if I should add one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Go AutoMemLimit

1 participant