reckon_db_leader_sup (reckon_db v1.3.2)
View SourceLeader supervisor for reckon-db
Manages leader-related components using rest_for_one strategy: - Leader tracker (subscription tracking) — started first - Leader worker (leader responsibilities) — depends on tracker
rest_for_one ensures that if the tracker crashes, the leader worker also restarts, re-establishing the dependency on tracking infrastructure.
Summary
Functions
Start the leader supervisor
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 leader supervisor