FerricStore.Instance.Supervisor (ferricstore v0.4.3)

Copy Markdown View Source

Per-instance supervision tree for a FerricStore instance.

Starts the custom instance shard tree and merge scheduler.

Custom instances are local/direct only. The default application instance owns the Raft system; allowing embedded instances to opt into Raft would collide with default shard/server names until per-instance Raft systems exist.

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.