reckon_db_persistence_sup (reckon_db v1.6.0)

View Source

Persistence supervisor for reckon-db

Manages persistence-related components: - Khepri store worker - Streams supervisor (writers/readers) - Persistence worker (batched flush, currently disabled)

Note: Snapshots and Subscriptions stores are facade modules that work directly with Khepri without needing gen_servers.

Summary

Functions

Start the persistence 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 persistence supervisor