Skip to content

Commit f282b5c

Browse files
erhnysrclaude
andcommitted
feat: make max-outbound-peers configurable via MAX_OUTBOUND_PEERS env var
The --max-outbound-peers flag in execution-entrypoint was hardcoded to 100 with no way to override it without modifying the entrypoint directly. Operators experiencing persistent "Send Queue full" gossipsub warnings (#1063) need to increase this value, but had no documented way to do so. - Add MAX_OUTBOUND_PEERS to execution-entrypoint (default: 100, preserving existing behaviour) - Document the variable in .env.mainnet and .env.sepolia under a new PEER LIMITS section with a reference to #1063 Closes #1063 (partially) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cf36041 commit f282b5c

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.env.mainnet

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ STATSD_ADDRESS="172.17.0.1"
4848
# FLASHBLOCKS (OPTIONAL - UNCOMMENT TO ENABLE)
4949
# RETH_FB_WEBSOCKET_URL=wss://mainnet.flashblocks.base.org/ws
5050

51+
# PEER LIMITS (OPTIONAL - UNCOMMENT TO OVERRIDE DEFAULTS)
52+
# --------------------------------------------------------
53+
# Increase MAX_OUTBOUND_PEERS if you see persistent "Send Queue full" warnings.
54+
# See: https://github.com/base/node/issues/1063
55+
# MAX_OUTBOUND_PEERS=100
56+
5157
# PRUNING (OPTIONAL - UNCOMMENT TO ENABLE)
5258
# NOTE: Set to any number of blocks you want, but it should be >10064
5359
# NOTE: The node type that was chosen when first running a node cannot be changed after the initial sync. Turning Archive into Pruned, or Pruned into Full is not supported [source](https://reth.rs/run/faq/pruning/).

.env.sepolia

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ STATSD_ADDRESS="172.17.0.1"
4848
# FLASHBLOCKS (OPTIONAL - UNCOMMENT TO ENABLE)
4949
# RETH_FB_WEBSOCKET_URL=wss://sepolia.flashblocks.base.org/ws
5050

51+
# PEER LIMITS (OPTIONAL - UNCOMMENT TO OVERRIDE DEFAULTS)
52+
# --------------------------------------------------------
53+
# Increase MAX_OUTBOUND_PEERS if you see persistent "Send Queue full" warnings.
54+
# See: https://github.com/base/node/issues/1063
55+
# MAX_OUTBOUND_PEERS=100
56+
5157
# PRUNING (OPTIONAL - UNCOMMENT TO ENABLE)
5258
# NOTE: Set to any number of blocks you want, but it should be >10064
5359
# NOTE: The node type that was chosen when first running a node cannot be changed after the initial sync. Turning Archive into Pruned, or Pruned into Full is not supported [source](https://reth.rs/run/faq/pruning/).

execution-entrypoint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ METRICS_PORT="${METRICS_PORT:-6060}"
1010
DISCOVERY_PORT="${DISCOVERY_PORT:-30303}"
1111
V5_DISCOVERY_PORT="${V5_DISCOVERY_PORT:-9200}"
1212
P2P_PORT="${P2P_PORT:-30303}"
13+
MAX_OUTBOUND_PEERS="${MAX_OUTBOUND_PEERS:-100}"
1314
ADDITIONAL_ARGS=""
1415
BINARY="./base-reth-node"
1516
RETH_HISTORICAL_PROOFS="${RETH_HISTORICAL_PROOFS:-false}"
@@ -150,7 +151,7 @@ exec "$BINARY" node \
150151
--authrpc.port="$AUTHRPC_PORT" \
151152
--authrpc.jwtsecret="$BASE_NODE_L2_ENGINE_AUTH" \
152153
--metrics=0.0.0.0:"$METRICS_PORT" \
153-
--max-outbound-peers=100 \
154+
--max-outbound-peers="$MAX_OUTBOUND_PEERS" \
154155
--chain "$RETH_CHAIN" \
155156
--rollup.sequencer-http="$RETH_SEQUENCER_HTTP" \
156157
--rollup.disable-tx-pool-gossip \

0 commit comments

Comments
 (0)