qdrvm / kagome

Kagome - C++20 implementation of Polkadot Host
https://kagome.readthedocs.io
Apache License 2.0
160 stars 34 forks source link

[Bug]: Enormous amount of peer connections #2081

Closed igor-egorov closed 6 months ago

igor-egorov commented 6 months ago

Bug Summary

Kagome establishes too many simultaneous connections

Bug Description

Kagome being syncing connects to around 140 peers and establishes about 100k raw connections while the following config was provided: --in-peers 20 --out-peers 20

image image

Steps to Reproduce

Launch syncing with Kusama network kagome node

Effects of the Bug

Track the amount of connections established

turuslan commented 6 months ago

connect is called 600 times per minute. Disabling kademlia protocol reduces to 20 calls per minute (30 times).