My relay is working fine, I have set my topology file to connect to 15 peeers and I confirm through GLiveView that my relay connects to 15 peers.
That said, I’m trying to understand why I do have 62 incoming connections, many being duplicated IPs
Hi @Alexd1985
Thanks for you quick reply.
A restart didn’t change anything and Im left with more or less the same number of incoming connections.
I took a quick look at the incoming IPs:
A few of them corresponds to previous topology
But a big part of them are not known to me.
Ill play with iptables to limit the incoming connections.
Should incoming connections be only IPs from my topology ?
@Alexd1985
Yes, I completely agree it is for out peers.
Don’t peers (the ones in my topology) have to also connect to my relays ?
What is the use of the incoming conections?
I don’t think you can using any configuration in mainnet-config.json. (@Alexd1985 please correct me if I am wrong about that.)
I don’t think you will see issues as incoming peers increases either, due to the “pull” based design Cardano’s network stack uses. I believe, (only my supposition), the networking protocol will preference processing data it requested before delivering data to others. Thus peers will wait on requests until if/when your node gets around to answering. If it doesn’t have time to answer then it won’t get around to it and won’t waste resources on extra incoming peers.
External peers can then make decisions about whether they might be better off attempting to pull data from another node instead of yours if yours is too overloaded. This seems to be the basis for how the new P2P design works with metrics kept about which peers are quickest at delivering the most recent blocks.
Currently, node operators change their mainnet-topology.json file to change peers and they don’t have any visibility about which peers would be best for them to pick. P2P mode will automate this and will use your statistics to continually pick the best peers.