Skip to content

ADR gap: peer table eviction policy #401

Closed

Description

@alpergundogdu

Gap

Peer table (NodeId → NodeAnnounce, ADR 001) eviction policy is unspecified. Open questions:

  • Size cap and eviction order (LRU? oldest-timestamp? lowest-reputation?)
  • Age-based expiry independent of size pressure
  • Offline-handling: when does a missing-from-gossip peer get evicted vs. just marked stale?
  • Interaction with the registry cache (does deregistration trigger immediate peer-table removal, or wait for natural expiry?)

Note: blacklist propagation — the other half of the original gap 10 — is now well-specified by ADR 011 (version polling, delta fetch via HashBlacklisted/OriginBlacklisted events, full re-sync at >100 version gap). This issue is only about peer-table eviction.

Refs

Why it needs an ADR

Without a defined policy, implementations diverge. Long-running nodes accumulate stale entries; aggressive evictors lose discovery coverage. Affects probe fan-out reach, gossip convergence, and memory budget planning.

Origin

Split out from #190 (gap 10) as a standalone tracking issue.

Activity

  1. added
    kind:docs
    design:missing-decision
    design:adr
    prio:medium
    on May 5, 2026
  2. self-assigned this
    on May 6, 2026
  3. added a commit that references this issue on May 6, 2026
    0764180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrdesign:missing-decisionkind:docsprio:medium

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions