Logo FsShelter

Election Module

Functions and values

Function or value Description

Election.elect topologyName view

Full Usage: Election.elect topologyName view

Parameters:
Returns: ElectionResult

Compute the master peer for `topologyName` over the live set in `view`, using `view.Epoch` to make selection epoch-sticky.

topologyName : string
view : MemberView
Returns: ElectionResult

Election.selfIsMaster topologyName view

Full Usage: Election.selfIsMaster topologyName view

Parameters:
Returns: bool

True when the local peer is the elected master for `topologyName`.

topologyName : string
view : MemberView
Returns: bool

Type something to start searching.