reckon_db_system_sup (reckon_db v1.1.0)
View SourcePer-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
-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
-spec start_link(store_config()) -> {ok, pid()} | {error, term()}.
Start the system supervisor for a store