You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(consensus): increase gossipsub outbound queue to 2560 - #6453
Raises MAX_OUTBOUND_QUEUE from 256 to 2560 (10x). This constant sets the gossipsub connection_handler_queue_len, the per-connection queue of outbound messages; raising it gives each peer connection more headroom before messages are dropped under bursty load.
Verified with cargo check -p base-consensus-gossip.
The reason will be displayed to describe this comment to others. Learn more.
This queue limit applies to each connection, and each queued publish/forward holds its own copy of the message bytes (up to MAX_GOSSIP_SIZE = 10 MiB). A 10x increase raises the worst-case buffered memory from ~2.5 GiB to ~25 GiB per stalled peer. With the default p2p.peers.hi of 30, that is up to ~750 GiB in theory. Even at typical 0.5–1 MiB block payloads, one stalled or malicious peer that stops reading can pin GBs on the sequencer or validator, and that risks an OOM on the node publishing blocks. It also delays the queue-full signal gossipsub uses to detect slow peers by 10x. Please justify the number using observed drop metrics and the realistic payload size × peers memory budget, or bound the queue by bytes or a smaller value instead of a flat 10x.
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
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.
Raises
MAX_OUTBOUND_QUEUEfrom 256 to 2560 (10x). This constant sets the gossipsubconnection_handler_queue_len, the per-connection queue of outbound messages; raising it gives each peer connection more headroom before messages are dropped under bursty load.Verified with
cargo check -p base-consensus-gossip.