Supervisor Module
Functions and values
| Function or value |
Description
|
|
Production defaults for `ClusterDeps`: system clock, on-disk peer-id store, on-disk peers cache, real TCP transport, real topology host.
|
|
|
Full Usage:
Supervisor.runClusterWith deps startLog topology
Parameters:
ClusterDeps<'t>
startLog : int -> Log
topology : Topology<'t>
Returns: Result<(unit -> unit), string>
Type parameters: 't |
Run a topology under cluster supervision using the provided external capabilities. If `CLUSTER_SEEDS` is empty (and `CLUSTER_LISTEN` likewise), this falls through to `deps.RunTopology` for single-process parity. Startup failures (bad cluster config, peer-id store I/O, transport bind) are returned as `Error`.
|
Full Usage:
Supervisor.step stabilizeMs state input
Parameters:
int
state : SupervisorState
input : SupervisorInput
Returns: SupervisorState * SupervisorEffect list
|
Pure transition: `(stabilizeMs, state) -> input -> (state, effects)`. All time arithmetic uses `nowMs` from the input; the function does not read any clock itself.
|
FsShelter