Open Jorropo opened 1 year ago
--json
for config not -json
In my experience, the problem seems to correlate with the number of IPFS peers the concerned node is connected to. The only effective way I have found so far for limited the number of nodes a peer is connected to is to disable the creation of new IPv4 connections by running the following command:
ipfs swarm filters add /ip4/0.0.0.0/ipcidr/0
Since keeping this configuration active seriously reduces IPFS connectivity, I created this project to automate its activation when the network performance shows signs of overloading, and deactivating it when the performance has reached its baseline again.
Network performance is measured in latency via the average ping times to /ip4/8.8.8.8
.
The project also logs network performance and the number of IPFS peer IDs to a file for analysis, which you might find useful for filing reports here as described in the issue description above.
I encourage you to adapt this project for other network metrics and IPFS limitation measures you find useful and share your findings to help the community solve this issue which IPFS has.
You can't access the internet when running Kubo ? Your router periodically stops for a few minutes when running Kubo ? Your internet is very slow when using Kubo ? You are in the right place !
You are puzzled by the amount of background connections and or traffic ? This is not here, please see discuss.ipfs.io.
Replaces https://github.com/ipfs/kubo/issues/3320
Known workarounds
No Reuseport
Try running with
LIBP2P_TCP_REUSEPORT=false ./ipfs daemon
and see if that is still happening.No TCP
Try running with thoses config:
ipfs config --json Swarm.Transports.Network.TCP false
ipfs config --json Swarm.Transports.Network.Websocket false
ipfs shutdown
restart your node for the new config to take effectDoing a report
Please copy paste this template and fill in inside your message (feel free to omit unknown fields, just fill best effort thx):
Table