Skip to content

Load-shedding under resource pressure (bandwidth / cache pressure) #1756

Closed

Description

@alpergundogdu

Load-shedding under resource pressure

Third axis alongside admission (#1754) and economic refuse-to-serve. This one is content-agnostic: refuse new serves when the node is saturated, regardless of which blob or what it pays.

The decision

Under resource pressure the node should shed load — decline new serve requests (the client re-routes) — to protect the serves already in flight and keep latency bounded. This is overload protection, not a per-blob storage or price decision.

Signals (lots here)

  • Concurrent bandwidth — egress near the node's committed/available capacity.
  • Cache pressure — disk near full, high eviction churn, IO saturation.
  • Connection / concurrent-stream count, CPU, memory.
  • Possibly per-lane / per-pool fairness so one client can't starve others.

Notes

  • Node-local, content-agnostic — distinct from admission (storage worth) and refuse-to-serve (economic worth). Some existing gates are adjacent (refuses(), the pre-flight deposit/solvency guard, the per-lane admission cap feat(payments): bound per-lane credit exposure with a concurrent-stream admission cap #1697) but none is a general resource-pressure shedder.
  • Refusing carries no penalty — the client re-routes with only a latency cost.
  • A real CDN — especially a trustless one where any node may be probed and hammered — needs graceful degradation under load rather than collapse.

Related: #1754 (admission & eviction), refuse-to-serve / stop-serving (separate issue).

Activity

  1. added
    kind:feature
    rust
    prio:medium
    on Aug 20, 2026
  2. moved this from Backlog to In progress in deCDNon Aug 20, 2026
  3. moved this from In progress to Done in deCDNon Aug 20, 2026
  4. closed this as completedby moving to Done in deCDNon Aug 20, 2026
  5. moved this from Done to In progress in deCDNon Aug 20, 2026
  6. moved this from In progress to Done in deCDNon Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:featureprio:mediumrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions