Skip to main content

Module config

Module config 

Source
Expand description

Tunable parameters for the replication subsystem.

All values below are a reference profile used for logic validation. Parameter safety constraints (Section 4):

  1. 1 <= QUORUM_THRESHOLD <= CLOSE_GROUP_SIZE
  2. Effective paid-list threshold is per-key dynamic: ConfirmNeeded(K) = floor(PaidGroupSize(K)/2)+1
  3. If constraints are violated at runtime reconfiguration, node MUST reject the config.

Structs§

ReplicationConfig
Runtime-configurable replication parameters.

Constants§

AUDIT_FAILURE_TRUST_WEIGHT
Trust event weight for confirmed audit failures.
AUDIT_TICK_INTERVAL_MAX
Audit scheduler cadence range (max).
AUDIT_TICK_INTERVAL_MIN
Audit scheduler cadence range (min).
BOOTSTRAP_CLAIM_GRACE_PERIOD
Maximum duration a peer may claim bootstrap status before penalties apply.
FETCH_REQUEST_TIMEOUT
Fetch request timeout.
K_BUCKET_SIZE
Maximum number of peers per k-bucket in the Kademlia routing table.
MAX_CONCURRENT_REPLICATION_SENDS
Maximum number of concurrent outbound replication sends.
MAX_REPLICATION_MESSAGE_SIZE
Maximum replication wire message size.
NEIGHBOR_SYNC_COOLDOWN
Per-peer minimum spacing between successive syncs with the same peer.
NEIGHBOR_SYNC_INTERVAL_MAX
Neighbor sync cadence range (max).
NEIGHBOR_SYNC_INTERVAL_MIN
Neighbor sync cadence range (min).
NEIGHBOR_SYNC_PEER_COUNT
Number of close-neighbor peers synced concurrently per round-robin repair round.
NEIGHBOR_SYNC_SCOPE
Number of closest peers to self eligible for neighbor sync.
PAID_LIST_CLOSE_GROUP_SIZE
Maximum number of closest nodes tracking paid status for a key.
PENDING_VERIFY_MAX_AGE
Maximum age for pending-verification entries before stale eviction.
PRUNE_HYSTERESIS_DURATION
Minimum continuous out-of-range duration before pruning a key.
QUORUM_THRESHOLD
Full-network target for required positive presence votes.
REPLICATION_PROTOCOL_ID
Protocol identifier for replication operations.
SELF_LOOKUP_INTERVAL_MAX
Periodic self-lookup cadence range (max).
SELF_LOOKUP_INTERVAL_MIN
Periodic self-lookup cadence range (min) to keep close neighborhood current.
VERIFICATION_REQUEST_TIMEOUT
Verification request timeout (per-batch).

Functions§

max_parallel_fetch
Returns the number of hardware threads available, used as the fetch concurrency limit.