Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/common/telemetry/src/pq_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ fn waggle_transport(policy: WagglePolicy<'_>) -> Value {
},
"incomplete_receive": {
"coverage": "observed",
"code_location": "ethlambda_p2p::beacon::waggle_aggregates::AggregateDisseminationService: clean_up, when the tracking window closes on an aggregate that is not complete (expired/timeout); bound_headerless_aggregates, on_header_held and on_header_verified, where the service stops tracking an aggregate because its last peer moved on to another of its slot and aggregator, or because the header of another one is held (expired/evicted); AggregateDisseminationService::publish, when this node publishes an aggregate peers had sent part of, which is no receipt (cancelled/cancelled); Aggregate::on_chunk_valid, when the complete aggregate cannot be handed to the P2P actor, and the drop of a delivery that actor stopped before taking off its mailbox (failed/other); and ethlambda_p2p::beacon::waggle, Handler<WaggleAggregateComplete>, when the retained chunks do not reassemble into a proof (failed/assembly_error). A service that stops (its topic is left, the node shuts down) ends its open trackers as cancelled/cancelled, which a node that is shutting down may no longer export. A tracker opens at the first message a peer sends about an AggregateID, before anything is validated, so one that ends having validated nothing (no header held, no chunk retained) is recorded within a budget of 256 at once and 32 a second for the process; past it the end is counted in pq_measurement_summary_evictions_total and not recorded, which is what keeps a peer naming a new aggregate in every message from filling the export queue. A tracker that held a header or retained a chunk always ends with its record",
"code_location": "ethlambda_p2p::beacon::waggle_aggregates::AggregateDisseminationService: clean_up, when the tracking window closes on an aggregate that is not complete (expired/timeout); on_header_held and on_header_verified, where the service stops tracking an aggregate because the header of another one of its slot and aggregator is held (expired/evicted); AggregateDisseminationService::publish, when this node publishes an aggregate peers had sent part of, which is no receipt (cancelled/cancelled); Aggregate::on_chunk_valid, when the complete aggregate cannot be handed to the P2P actor, and the drop of a delivery that actor stopped before taking off its mailbox (failed/other); and ethlambda_p2p::beacon::waggle, Handler<WaggleAggregateComplete>, when the retained chunks do not reassemble into a proof (failed/assembly_error). A service that stops (its topic is left, the node shuts down) ends its open trackers as cancelled/cancelled, which a node that is shutting down may no longer export. A tracker opens at the first message a peer sends about an AggregateID, before anything is validated, so one that ends having validated nothing (no header held, no chunk retained) is recorded within a budget of 256 at once and 32 a second for the process; past it the end is counted in pq_measurement_summary_evictions_total and not recorded, which is what keeps a peer naming a new aggregate in every message from filling the export queue. A tracker that held a header or retained a chunk always ends with its record",
},
"publish": {
"code_location": "handoff: ethlambda_rpc::beacon::pool::post_pq_aggregate_and_proofs, after the header and the proof passed their checks and right before the aggregate is sent to the network actor (RpcToP2P::publish_pq_waggle_aggregate), so before that actor's mailbox and the proof's split into the chunks the service is given; handoff_admission: the topic service's mailbox, a tokio mpsc try_send in ethlambda_p2p::beacon::waggle::publish (accepted is read right before the non-blocking call that reports it; a full mailbox is rejected/queue_full and a closed one rejected/shutdown, each a local failed result); invoked: AggregateDisseminationService::publish, when the service takes the aggregate off its mailbox; result: that function's own disposition (tracked as its origin -> network accepted/none; every chunk already held -> duplicate_suppressed/duplicate; slot outside the tracking window, a no-op -> suppressed/stale; another aggregate of the slot and aggregator held -> failed/other; chunks that are not the 64 in order -> failed/invalid). An aggregate the seen cache already covers is not handed to the service: local duplicate_suppressed/duplicate, which settles its duty as a duplicate unless the aggregate's own publication still awaits the service's answer (a copy handed over twice: the answer settles it). A failure before the mailbox (no held fork digest, no service for it, a proof that does not split, a stopped network actor) emits no record",
Expand Down
18 changes: 9 additions & 9 deletions crates/common/telemetry/src/pq_events/waggle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ fn missing(reason: &str) -> Value {
/// How many trackers that validated nothing may end with a record.
///
/// A tracker opens at the first message a peer sends about an aggregate,
/// before anything of it is checked, so its ID is that peer's word alone: a
/// peer that names another aggregate of a slot and aggregator in every
/// message opens one tracker and ends another each time. A record for each
/// would let one peer fill the exporter's queue, at the cost of real
/// records. So those ends draw on a budget, and one past it is counted as a
/// summary eviction of the event, as this family counts every loss before a
/// record, and not recorded. A tracker that held a header or
/// retained a chunk cost its peers a signed header of an aggregator of the
/// slot, and always ends with its record.
/// before anything of it is checked, so its ID is that peer's word alone. A
/// peer is held to one aggregate per slot and aggregator, but it can name a
/// made-up one for every aggregator of every tracked slot, and again under
/// another identity. A record for each would let such peers fill the
/// exporter's queue, at the cost of real records. So those ends draw on a
/// budget, and one past it is counted as a summary eviction of the event, as
/// this family counts every loss before a record, and not recorded. A
/// tracker that held a header or retained a chunk cost its peers a signed
/// header of an aggregator of the slot, and always ends with its record.
mod unvalidated {
use std::sync::atomic::{AtomicU64, Ordering};

Expand Down
Loading
Loading