reckon_db_core_sup (reckon_db v1.2.6)

View Source

Core supervisor for reckon-db

Manages tightly-coupled core components using one_for_all strategy: - PersistenceSystem (Khepri store, streams, snapshots, subscriptions) - NotificationSystem (leader, emitters) - StoreMgr (store lifecycle coordination)

If any child fails, all children are restarted to ensure consistency.

Summary

Functions

Start the core supervisor

Types

store_config/0

-type store_config() ::
          #store_config{store_id :: atom(),
                        data_dir :: string(),
                        mode :: single | cluster,
                        timeout :: pos_integer(),
                        writer_pool_size :: pos_integer(),
                        reader_pool_size :: pos_integer(),
                        gateway_pool_size :: pos_integer(),
                        options :: map()}.

Functions

start_link(Store_config)

-spec start_link(store_config()) -> {ok, pid()} | {error, term()}.

Start the core supervisor