Skip to content

Node: implement cache eviction driver loop + cache-health metrics #1173

Closed

Description

@alpergundogdu

Disposition: IMPLEMENT (appendix-blob-cache-eviction; also covers the L7 metrics finding).

eviction_candidates()/touch exist but nothing consumes them; cache_size_mb is never enforced, so cache grows unbounded until disk-full — the adversarial-fill case (crates/node/src/runtime/mod.rs:3455, crates/cache/src/engine.rs:1926).

Action: add the single async driver task in the node wiring layer with governable params (eviction_high_water_pct, eviction_target_pct, per-sweep budget, tick cadence) plus the cache-health metrics (decdn_cache_size_limit_bytes, _evicted_operator_total, _pinned_count).


Filed from the ADR→implementation gap analysis. ADR edits must be made in place with no historical/tombstone text (no "planned but cut" sentences) per repo ADR convention.

Activity

  1. added
    prio:high
    rust
    on Jul 15, 2026
  2. altanoruc commented on Jul 17, 2026

    @altanoruc
    Contributor

    Triage note for a later automated run: the driver shape is clear, but the governable parameters are not yet implementation-ready. Please pin defaults and allowed bounds for high-water percentage, target percentage, per-sweep budget, and tick cadence, plus the deterministic eviction order when candidates exceed one sweep budget.

  3. self-assigned this
    on Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prio:highrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions