Improve observability for sync committee subnets - #11201
Open
akronim26 wants to merge 5 commits into
Open
Conversation
Contributor
|
One non-blocking note: GitHub Advanced Security already commented on the two unused switch pattern variables in SyncCommitteeMessageGossipManager.java:140-141. Replacing ignored with unnamed patterns or reverting to instanceof checks would quiet that. |
akronim26
force-pushed
the
observability
branch
from
September 3, 2026 12:47
b293be7 to
496deb8
Compare
akronim26
force-pushed
the
observability
branch
from
September 3, 2026 12:57
496deb8 to
4714e99
Compare
Contributor
Author
I have replaced the unread pattern with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
This PR adds observability around sync committee peering, making it easy to see when a subnet is under-peered. It adds:
SyncCommitteeSubnetPeerCountLogger, which issues throttled warnings whenever the peer count is less than the target countsync_committee_message_peer_search_requested_totalis labelled withreason(NO_PEERSorNO_OUTBOUND_STREAM) so the two cases can be observed and handled accordinglyFixed Issue(s)
Resolves #11114
Documentation
doc-change-requiredlabel to this PR if updates are required.Changelog
Note
Low Risk
Observability-only changes (logging and metrics) with no changes to gossip publish or peer-selection behavior beyond instrumentation.
Overview
Adds observability for sync committee subnet peering so operators can spot under-peered subnets and distinguish why gossip publish failures trigger peer discovery.
Introduces
SyncCommitteeSubnetPeerCountLogger, invoked wheneverPeerSubnetSubscriptionsis rebuilt during peer selection. For each subscribed sync committee subnet with at least one connected peer, it emits throttled (60s per subnet) warnings if the subscribed peer count is below the configured target.In
SyncCommitteeMessageGossipManager, peer searches on publish failure are now counted viasync_committee_message_peer_search_requested_totalwith areasonlabel (no_peersvsno_outbound_stream), without changing when peer search runs. Network builders and test fixtures pass the new logger intoPeerSubnetSubscriptions.create.Reviewed by Cursor Bugbot for commit fd3a29a. Bugbot is set up for automated code reviews on this repo. Configure here.