raft_fleet v0.5.0 RaftFleet.ProcessAndDiskLogIndexInspector View Source
A GenServer that reports “eligibility” of a node for hosting the 1st member of a new consensus group.
When starting a new consensus group, a manager process collects reports from all active nodes and determine where to spawn the 1st member process. The report includes:
- whether there exists a process whose registered name equals to the consensus group name
- last log index in locally stored files (if any)
Link to this section Summary
Link to this section Functions
Link to this function
find_node_having_latest_log_index(name)
View Source
find_node_having_latest_log_index(atom()) :: {:ok, nil | node()} | {:error, :process_exists}