docs: DefaultResourceMgrMinInboundConns
Marcin Rataj committed
Jan 27, 2023 at 16:57 UTC
f2dab48e66ab35bced3bf41451e089ed44eb0e0a
1 file changed
+1
-1
docs/libp2p-resource-management.md
+1
-1
@@ -152,7 +152,7 @@ existing low priority idle connections can prevent new high priority connections
152
The ResourceMgr doesn't know that the new connection is high priority and simply blocks it because of the limit its enforcing.
153
154
To ensure the ConnMgr and ResourceMgr are congruent, the ResourceMgr [computed default limts](#computed-default-limits) are adjusted such that:
155
-1. `Swarm.ResourceMgr.Limits.System.ConnsInbound` >= `max(Swarm.ConnMgr.HighWater * 2, 800)` AND
155
+1. `Swarm.ResourceMgr.Limits.System.ConnsInbound` >= `max(Swarm.ConnMgr.HighWater * 2, DefaultResourceMgrMinInboundConns)` AND
156
2. `Swarm.ResourceMgr.Limits.System.StreamsInbound` is greater than any new/adjusted `Swarm.ResourceMgr.Limits.System.ConnsInbound` value so that there's enough streams per connection.
157
158
### How does one see the Active Limits?