Raft Consensus Algorithm
    Preparing search index...

    Interface RaftConfig

    Static node bootstrap/runtime configuration.

    interface RaftConfig {
        address: string;
        electionTimeoutMaxMs: number;
        electionTimeoutMinMs: number;
        heartbeatIntervalMs: number;
        nodeId: string;
        peers: ClusterMember[];
        snapshotThreshold?: number;
    }
    Index

    Properties

    address: string

    Local transport address.

    electionTimeoutMaxMs: number

    Maximum election timeout in milliseconds.

    electionTimeoutMinMs: number

    Minimum election timeout in milliseconds.

    heartbeatIntervalMs: number

    Heartbeat interval in milliseconds.

    nodeId: string

    Local node id.

    peers: ClusterMember[]

    Other cluster members (excluding self).

    snapshotThreshold?: number

    Optional committed-entry threshold for triggering snapshots.