Documentation ¶
Overview ¶
Package automemlimit implements a service activity that sets the GOMEMLIMIT1 to be a percentage of the total cgroup memory limit. This is useful for containerized environments where the GC will not be able to detect the total memory available to the process and thus will not be able to properly determine when an out of memory condition is about to occur in relation to freeing memory.
This is controllable with environment variables provided by the automemlimit package2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceActivity ¶
type ServiceActivity struct{}
ServiceActivity implements the async.Runner & Closer interface for setting GOMEMLIMIT properly in a containerized environment.
Click to show internal directories.
Click to hide internal directories.