fix(loki): cap WAL replay memory below the container limit #18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/loki-wal-replay-memory-ceiling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #17, which is confirmed working: the startupProbe let the replay run 6m21s instead of being killed at 148s. The replay then hit the REAL ceiling and was OOMKilled.
Lokis default
ingester.wal.replay_memory_ceilingis 4GB; the container limit is 3Gi. The default therefore lets replay ask for more memory than the container can ever have, and a 3.6 GiB WAL gets there.The ceiling makes the ingester flush to storage during replay rather than holding the whole WAL in memory. 1GB keeps it well below 3Gi, leaving room for the chunk cache and in-memory indexes.
Both changes are needed: the probe stops the premature kill, the ceiling stops the OOM the probe exposed.