Ferricstore.OperationalGuard (ferricstore v0.4.2)

Copy Markdown View Source

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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

info()

@spec info() :: map()

pressure?()

@spec pressure?() :: boolean()

reject_flow_creates?()

@spec reject_flow_creates?() :: boolean()

reject_writes?()

@spec reject_writes?() :: boolean()

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start() | :ignore