grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
Apache License 2.0
157 stars 20 forks source link

Feature: automatically set up GOMEMLIMIT #691

Closed mem closed 2 months ago

mem commented 2 months ago

Automatically set up GOMEMLIMIT to 90% of the cgroup allowed memory. If running in an environment where there's no cgroup limit set up, fallback to 90% of the system's memory. Note that this doesn't mean that the program will use 90% of the system's memory, but that if it does get to that point, the garbaga collector will try to be more aggresive.

It is strongly recommended to set a limit via cgroups.

Signed-off-by: Marcelo E. Magallon marcelo.magallon@grafana.com

mem commented 2 months ago

This needs #689