-
Notifications
You must be signed in to change notification settings - Fork 249
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
Failed to set GOMEMLIMIT on M3 Mac #2305
Comments
I also used the instructions at https://grafana.com/docs/alloy/latest/configure/macos/#configure-the-alloy-service to edit the homebrew recipe and set alloy/internal/alloycli/cmd_run.go Line 221 in 2b42ec4
❯ cat /opt/homebrew/etc/alloy/config.env
GOMEMLIMIT=2750MiB |
This error should be resolved (no longer attempting to use groups & logging the message) in next release #2264 The environment variable should definitely overrule the cgroup behavior (see https://github.com/KimMachineGun/automemlimit/blob/v0.6.1/memlimit/memlimit.go#L146C2-L150C3 ) so I'm surprised that you weren't able to set GOMEMLIMIT in the appropriate way through homebrew services. I'll find some time to test that behavior and see if I can replicate. |
My tests replicated the behavior, GOMEMLIMIT is not pulled in to the alloy service according to the documentation. |
I've had a chance to discuss with the team - it looks like the behavior exists in the latest brew service, but will require reinstalling alloy ( see comments in grafana/homebrew-grafana#108 ) |
Thanks for the followup - reinstalling the latest version is working now |
What's wrong?
After installing with homebrew and setting up a pipeline to write logs to loki, Alloy fails to send logs and reports an error indicating that the system doesn't support cgroups and cant
GOMEMLIMIT
.Steps to reproduce
System information
M3 Macbook arm64
Software version
Grafana Alloy v1.5.1
Configuration
Logs
The text was updated successfully, but these errors were encountered: