Skip to content

node: decdn_bytes_served_total appears to count ~2.3× the bytes the client legs deliver #2619

Closed

Description

@thiras

Noted while building the public gateway (#2593 series), to confirm and fix.

Observation. The node's decdn_bytes_served_total appears to rise by about 2.3× the bytes the client legs actually delivered during the gateway e2e journeys (crates/e2e/tests/gateway_public.rs: six 4 MiB pulls plus a 1.5 MiB range; the gateway's own decdn_gateway_bytes_served_total counts the delivered bytes exactly).

Ask. Reproduce by running the gateway_public e2e (cargo nextest run -p decdn-e2e --features anvil-e2e -E 'binary(gateway_public)') with the node's metrics scraped before and after, and compare against the gateway's counter. Candidate causes: the counter adding bao proof bytes and chunk-group padding to payload bytes, counting per lane across stripes, or counting retried legs twice. Decide what the series means (wire bytes vs payload bytes) in adr/appendix-observability.md, make the node export both if operators need both, and add an e2e assertion that pins the ratio.

Why. Operator dashboards and the per-MB economics notebooks read this series as delivered payload.

🤖 Generated with Claude Code

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions