You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The memory ballast extension is deprecated in favor of using the GOMEMLIMIT environment variable. This environment variable is available on any Collector built with Go 1.19 or higher.
Desired Behavior
Achieve the same functionality with GOMEMLIMIT variable.
Possible Solution
To migrate to GOMEMLIMIT, set its value to 80% of the hard memory limit of your Collector. For example, if the Collector hard memory limit is 1GiB, set GOMEMLIMIT to 800MiB.
env:
# GOMEMLIMIT variable sets a soft memory limit for the runtime. It should be set to 80% of the hard memory limit of your collector.
- name: GOMEMLIMIT
value: 100MiB
Additional context
The text was updated successfully, but these errors were encountered:
I think this is a very good idea. Reading a bit about the difference I cannot help nut notice, that using GOMEMLIMIT instead of memory_ballast provides more predictable memory usage overall and less consumption for quite a few people out there: open-telemetry/opentelemetry-collector#8343 (comment)
However is it possible to make the GOMEMLIMIT somehow adaptive based on the resource Limits provided? Instead of having to hardcode it? So let's say my collector has 1Gi memory Limit, then GOMEMLIMIT should be 80% of that (800MiB) but if I increase the Limit to 2Gi, then I should not have to also manually increase the GOMEMLIMIT to 1600MiB.
Summary
Replace deprecated memory_ballast extension with GOMEMLIMIT variable.
The memory ballast extension is deprecated in favor of using the GOMEMLIMIT environment variable. This environment variable is available on any Collector built with Go 1.19 or higher.
Desired Behavior
Achieve the same functionality with GOMEMLIMIT variable.
Possible Solution
To migrate to GOMEMLIMIT, set its value to 80% of the hard memory limit of your Collector. For example, if the Collector hard memory limit is 1GiB, set GOMEMLIMIT to 800MiB.
Additional context
The text was updated successfully, but these errors were encountered: