Good ConnectionLimits for a Filecoin node #4252
Replies: 1 comment 5 replies
-
Cross-posting response on Slack here:
Agreed. Take e.g. the kademlia-exporter project runs on a medium size VM (~30 EUR) handling couple of thousands connections simultaneously. kademlia-exporter.max-inden.de/ Our latest rust-libp2p based IPFS bootstrap node handles around 30_000 connections concurrently.
Correct. Today you can only set static limits via See line below on #3078 for dynamic connection limits based on memory.
|
Beta Was this translation helpful? Give feedback.
-
I'm looking for a piece of advice on reasonable defaults for ConnectionLimits for a Filecoin node.
Right now, in Forest, they are pretty arbitrary. Most of the time, they work fine, but they're likely on the low side.
Not setting limits may expose the node to malicious actors creating peers and ultimately OOMing the node (or eclipse attacks, as noted in the documentation). That is a difference between the rust-libp2p and go-libp2p defaults, but I may need to be corrected.
Beta Was this translation helpful? Give feedback.
All reactions