Skip to content

tpd: apply each transport edge's telemetry at most every 2 minutes - #5275

Merged
0pcom merged 1 commit into
skycoin:developfrom
0magnet:tpd-telemetry-pacing
Sep 30, 2026
Merged

0pcom merged 1 commit into
skycoin:developfrom
0magnet:tpd-telemetry-pacing

Conversation

@0pcom

@0pcom 0pcom commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Keepalive pings move every live transport's byte counters, so the unchanged-shard dedup (#5268) cannot skip them: both edges of ~80k transports reported every 45 s — ~3k bandwidth and ~1.5k latency scripts a second, ~20 redis commands each, measured on prod01 after #5274 removed the metrics reads. That is now the bulk of TPD's load.

Counters are cumulative, so applying fewer snapshots loses no bytes; the next delta spans the skipped ones. Latency is kept as the latest and throughput as the peak over held reports. A held snapshot is flushed once its window passes (a transport that goes away keeps its last delta), and the first report of a UTC day applies at once. Uptime heartbeats are paced separately, as before.

Keepalive pings move every live transport's byte counters, so the
unchanged-shard dedup cannot skip them: both edges of ~80k transports
reported every 45 s, ~3k bandwidth and ~1.5k latency scripts a second
(~20 redis commands each) on prod01 after skycoin#5274 removed the metrics
reads — now the bulk of TPD's load.

Counters are cumulative, so applying fewer snapshots loses no bytes; the
next delta spans the skipped ones. Latency is kept as the latest and
throughput as the peak over held reports. A held snapshot is flushed
when its window passes, and the first report of a UTC day applies at
once. Uptime heartbeats are paced separately, as before.
@0pcom
0pcom merged commit 53911a1 into skycoin:develop Sep 30, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant