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

feat(env): Add automatic memory limit handling #3895

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dongjiang1989
Copy link
Contributor

Enable automatic detection of memory limits and configure GOMEMLIMIT to match.Also includes a flag to allow controlling the reserved ratio.

ref: prometheus/prometheus#13395

@dongjiang1989
Copy link
Contributor Author

$ ./alertmanager --config.file=../../examples/ha/alertmanager.yml --enable-feature=auto-gomemlimit
ts=2024-06-27T10:37:22.613Z caller=main.go:192 level=info msg="Starting Alertmanager" version="(version=, branch=, revision=6658addc652de854f8d34988c7286093dceaec05-modified)"
ts=2024-06-27T10:37:22.613Z caller=main.go:193 level=info build_context="(go=go1.22.0, platform=darwin/amd64, user=, date=, tags=unknown)"
ts=2024-06-27T10:37:22.613Z caller=featurecontrol.go:131 level=warn msg="Automatically set to match the Linux container memory limit. If there is no container limit, or the process is running outside of containers, the system memory total is used."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant