FerricStore.Instance.Supervisor (ferricstore v0.3.2)

Copy Markdown View Source

Per-instance supervision tree for a FerricStore instance.

Starts all processes needed for the instance: shards, batchers, writers, merge schedulers, Raft system, MemoryGuard, Stats, etc.

Each instance is fully isolated — its own ETS tables, Raft WAL, data directory, and process tree.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the instance supervisor and all child processes.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(name, opts)

@spec start_link(
  atom(),
  keyword()
) :: Supervisor.on_start()

Starts the instance supervisor and all child processes.

The instance context (ctx) must already be built via FerricStore.Instance.build/2 before calling this.