Raft Consensus Algorithm
    Preparing search index...

    Interface RaftNodeOptions

    Construction options for a Raft node instance.

    interface RaftNodeOptions {
        _clock?: Clock;
        _random?: Random;
        config: RaftConfig;
        eventBus?: RaftEventBus;
        logger?: Logger;
        stateMachine: ApplicationStateMachine;
        storage: NodeStorage;
        transport: Transport;
    }
    Index

    Properties

    _clock?: Clock

    Internal/testing override for clock source.

    _random?: Random

    Internal/testing override for random source.

    config: RaftConfig

    Static local and cluster configuration.

    eventBus?: RaftEventBus

    Optional event bus. Defaults to NoOpEventBus.

    logger?: Logger

    Optional logger. Defaults to ConsoleLogger.

    Application state machine receiving committed commands.

    storage: NodeStorage

    Node storage bundle for log, metadata, snapshots, and configuration.

    transport: Transport

    Transport implementation used for Raft RPC communication.