@cryptotaxi247 / kubo / commits / 6b76ff0ca

docs/env variables: Document LIBP2P_SWARM_FD_LIMIT

Hector Sanjuan committed Jun 6, 2025 at 22:51 UTC 6b76ff0ca03bda69dc113e6f285a1f57a12577c4
1 file changed +9
docs/environment-variables.md
+9
@@ -23,6 +23,7 @@
23 - [`LIBP2P_MUX_PREFS`](#libp2p_mux_prefs)
24 - [`LIBP2P_RCMGR`](#libp2p_rcmgr)
25 - [`LIBP2P_DEBUG_RCMGR`](#libp2p_debug_rcmgr)
26 + - [`LIBP2P_SWARM_FD_LIMIT`](#libp2p_swarm_fd_limit)
27 - [Tracing](#tracing)
28
29 # Variables
@@ -235,6 +236,14 @@ and outputs it to `rcmgr.json.gz`
236
237 Default: disabled (not set)
238
239 +## `LIBP2P_SWARM_FD_LIMIT`
240 +
241 +This variable controls the number of concurrent outbound dials (except dials to relay addresses which have their own limiting logic).
242 +
243 +Reducing it slows down connection ballooning but might affect performance negatively.
244 +
245 +Default: [160](https://github.com/libp2p/go-libp2p/blob/master/p2p/net/swarm/swarm_dial.go#L91) (not set)
246 +
247 # Tracing
248
249 For tracing configuration, please check: https://github.com/ipfs/boxo/blob/main/docs/tracing.md