Repository navigation
feat: show aggregates per slot and per epoch with their aggregators and timing - #949
barnabasbusa wants to merge 15 commits into
Conversation
…redundant, not missing
…aries and explain every column
…columns and tint slots with missing aggregators
This comment has been minimized.
This comment has been minimized.
…every arrival table and drop the elected column
There was a problem hiding this comment.
Summary
The PR adds per-slot and per-epoch gossip aggregate views with aggregator timing, coverage and client statistics; the latest commits on top are the node-location flag work now merged from the base branch. The earlier colspan mismatch is fixed (the no-aggregate child row now spans the remaining 8 of 11 columns), but five open correctness issues remain in the aggregate code.
Issues
- 🟡
templates/_shared/arrival_chart.html:792— epoch aggregate dots before the deadline-500ms are clipped out of the chart — see the thread on that line - 🟡
handlers/slot_attesters.go:479— a failed aggregate query is cached as no aggregates for the full page timeout — see the thread on that line - 🟡
handlers/aggregates.go:270— empty-but-non-nil arrivals make every committee look saturated — see the thread on that line - 🟡
templates/_shared/arrival_chart.html:169— column sort treats early (negative) deltas as late — see the thread on that line - 🟡
handlers/aggregates.go:454— epoch view can never tell covered misses from incomplete ones — see the thread on that line
Reviewed @ 87f67103
When threatened, a red panda stands on its hind legs to look bigger. It does not look bigger.
| committees = epochCommittees[index] | ||
| } | ||
|
|
||
| built := buildAggregateRows(ctx, slot, bySlot[slot], observers[slot], committees, nil) |
There was a problem hiding this comment.
🟡 epoch view can never tell covered misses from incomplete ones
loadEpochAggregates passes nil arrivals, and the arrivals == nil branch of the saturation test at 270 forces coversSeen false for any aggregate that leaves a member out, so saturated/Redundant stay 0 except for aggregates covering the whole committee. The amber slot tint and "missed, covered" column added in the last commit therefore never appear on the epoch page, and a slot shows red there although its own slot page shows amber; load the epoch arrivals or drop the distinction from that page.
…rrivals # Conflicts: # templates/_shared/arrival_chart.html # templates/slot/arrival.html
The propagation views show when single attestations arrive but say nothing about the aggregates built from them, so a slow or silent aggregator client is invisible. This adds every gossip aggregate from xatu's `libp2p_gossipsub_aggregate_and_proof` (aggregator index, committee, bits, size) to the slot propagation tab, as a per-committee timeline and a table with first seen, delay against the aggregate deadline, the median over the nodes whose beacon API reported the same aggregate (matched by bits from `beacon_api_eth_v1_events_attestation`), committee coverage, the latest included single attestation, attestations left out and size. The epoch page gets the sum over all aggregates: one dot per aggregate by slot and arrival time, and a per aggregator client table with counts, p50/p90 and how often it was more than 1s late. `electedAggregators` returns nothing here; forks that publish aggregators ahead (pq's `aggregation_committee_window`) fill it in to mark elected aggregators that sent no aggregate. xatu writes the gossip
aggregation_bitswithout the bitlist length bit (ethpandaops/xatu#974), so they are read as raw member bits up to the committee size, which stays correct once it writes the full bitlist.