Skip to content

monitoring: DecdnProbeHoldViolations annotation describes an unreachable failure mode, and contradicts ADR 005 on the 25% guidance #1471

Closed

Description

@thiras

Found while fixing the operator runbook in #1469. Two defects in monitoring/prometheus-alerts.yml, both the same class as the doc drift that PR removed: the alert text contradicts the ADR it was copied from.

1. The annotation describes a case that cannot happen (:33-36)

decdn_probe_hold_violations_total has been incrementing for 5m on
... evicted within probe_hold_duration after signing has_blob: true — valid phantom
slash evidence. Reduce load or raise max_probe_holds; investigate

Appendix: Observability § Slash-Safety Metrics says the opposite on both counts:

  • The counter fires when the blob is present but un-holdable because every slot is live — the node then signs has_blob: **false** and forgoes the delivery. The literal "evicted after signing has_blob: true" case is "unreachable by construction" (held hashes are invisible to the LRU driver).
  • It is "an availability/budget-pressure signal (raise max_probe_holds), not a slash risk".

So the annotation tells an on-call operator they are producing valid phantom slash evidence during what is actually a revenue-loss event. The remedy it gives ("raise max_probe_holds") is right; the diagnosis is not. ADR 005 § Hold budget agrees: "Hold-budget exhaustion at the admitted rate is an availability degradation, not a safety violation: the node loses revenue but is not falsely slashed."

Worth checking whether the critical severity and the alert's placement in the decdn-slash-safety rule group still fit once the description is corrected.

2. The 25% guidance has its inequality backwards (:316-319)

Increase max_probe_holds proportional to cache
size (recommended: ≥25% of cache capacity).

ADR 005 § Hold budget scopes it the other way, and only to small caches:

Operators running small caches should set max_probe_holds proportional to cache size (recommended: no more than 25% of cache capacity); production nodes serving many peers should increase the default proportionally.

crates/common/src/config/types.rs:466 carries the same "≤25%, small caches" framing. The alert file is the only place saying ≥.

Also

The alert annotations reference max_probe_holds without noting it is restart-required (crates/node/src/runtime/reload.rs, cache_has_restart_required_field). An operator who edits it and reloads mid-incident sees no change and a "requires restart" log line.

Scope note

docs/runbook.md carried both errors and was corrected in #1469; the runbook now flags the alert annotation as wrong inline, which should be removed once this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:docs

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions