Proactive operational guard for memory/disk capacity.
MemoryGuard protects the hot cache. DiskPressure protects individual shard
writes after IO failures. This module bridges the operational gap: it watches
real node/filesystem budgets and enters pressure mode before an ENOSPC or RSS
collapse. Pressure accelerates retention/compaction; reject level gates writes
cleanly through the existing write-path flags.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec info() :: map()
@spec pressure?() :: boolean()
@spec reject_flow_creates?() :: boolean()
@spec reject_writes?() :: boolean()
@spec start_link(keyword()) :: GenServer.on_start() | :ignore