Skip to main content

OTEL-029: Neither limit_mib nor limit_percentage set on memory_limiter

Severity: deny (blocking)

Rule Details

memory_limiter is configured with either an absolute limit (limit_mib) or a percentage of the host/container memory (limit_percentage). If neither is set, the limiter has nothing to compare against — the processor is inert. Pick one. Absolute limits are easier to reason about when cgroup limits are fixed; percentages are easier when pods scale vertically.

This rule fires when a memory_limiter processor has neither limit_mib nor limit_percentage set.

Options

This rule has no options.

Examples

Incorrect
processors:
memory_limiter:
check_interval: 5s
# no limit_mib or limit_percentage
Correct
processors:
memory_limiter:
check_interval: 5s
limit_percentage: 80
spike_limit_percentage: 25

When Not To Use It

Never — a limiter with no limit configured does not protect anything.

  • OTEL-001memory_limiter processor must be configured
  • OTEL-027memory_limiter check_interval is 0 or unset
  • OTEL-028spike_limit_mib >= limit_mib
  • OTEL-030limit_percentage outside safe range

Version

Available since augur v0.1.0.

Further Reading

Resources