reckon_db_system_sup (reckon_db v1.1.0)

View Source

Per-store system supervisor for reckon-db

This supervisor manages all subsystems for a single store instance. Uses rest_for_one strategy to ensure proper startup order:

1. CoreSystem (one_for_all) - persistence, notification, store management 2. ClusterSystem (cluster mode only) - discovery, coordination, monitoring 3. GatewaySystem - external interface workers

Summary

Functions

Start the system supervisor for a store

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 system supervisor for a store