Memory Ballast extension ๐
The Memory Ballast extension enables applications to configure memory ballast for processing.
Get started ๐
You can configure the following settings for the extension:
size_mib
. The memory ballast size, in MiB.0
by default.Takes higher priority than
size_in_percentage
if both are specified at the same time.
size_in_percentage
. Sets the memory ballast based on the total memory in percentage.0
by default.The value can range from 1 to 100.
Supported in both containerized (Docker, Kubernetes) and physical host environments.
Calculate the ballastโs size as a percentage ๐
When size_in_percentage
is enabled, the value for ballast_size
is calculated as follows.
On the target host or container, check the value in memory.limit_in_bytes
to learn if thereโs any memory limitation for the running Collector process. Memory files are stores in paths such as /sys/fs/cgroup/memory/memory.limit_in_bytes.
If
memory.limit_in_bytes
is a positive value other than9223372036854771712
(0x7FFFFFFFFFFFF000
), the value forballast_size
is calculated with the formulaballast_size
=size_in_percentage
*memory.limit_in_bytes
/ 100If
memory.limit_in_bytes
is9223372036854771712
(0x7FFFFFFFFFFFF000
), no memory limit has been set for the Collector process or the running container in cgroup, and the value forballast_size
is calculated with the formulaballast_size
=size_in_percentage
*totalMemory
/ 100where
totalMemory
is calculated by github.com/shirou/gopsutil/v3/mem onmem.VirtualMemory().total
.
Sample configurations ๐
This configuration uses 64 Mib of memory for the ballast:
extensions:
memory_ballast:
size_mib: 64
This configuration uses 20% of the total memory for the ballast:
extensions:
memory_ballast:
size_in_percentage: 20
Settings ๐
The following table shows the configuration options for the Memory Ballast extension:
Troubleshooting ๐
If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.
Available to Splunk Observability Cloud customers
Submit a case in the Splunk Support Portal .
Call Splunk Customer Support .
Available to prospective customers and free trial users
Ask a question and get answers through community support at Splunk Answers .
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.
To learn about even more support options, see Splunk Customer Success .