Detail
Aerospike has 2 configuration items that check system memory usage:
- stop-writes-sys-memory-pct
- evict-sys-memory-pct (Server versions 7.0-7.2 only)
What is included when checking memory usage against these configuration items?
Answer
When comparing these configuration items against system memory usage, Aerospike makes use of the MemTotal and MemAvailable outputs from /proc/meminfo. This tells Aerospike what the OS believes is happening with memory usage and allows Aerospike to make a calculation of percentage memory used at a system level, which it will then compare to stop-writes-sys-memory-pct and evict-sys-memory-pct (depending on version)
Notes
If using containers, the values returned by /proc/meminfo will be those of the host rather than the container