-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection counts climbing far past HighWater setting #6286
Comments
Have you recently advertised as a relay hop with autorelay? |
@vyzo Assuming I would do that using the |
@leerspace could you post the output of |
I didn't think to get verbose output from |
I got this to happen again to some extent (2000+ peers), but I think this is probably just a duplicate of #6283. Here's the I should probably be using |
Unfortunately, we don't (yet) have anything to simply stop new connections. Libp2p needs to feed the connection manager down through to the transports themselves. But still, that's a lot of inbound connections. |
i seem to still be running into this with v0.4.21, my node consistently has around 8000 peers even though my highwater is set to 900. |
Some problem with 0.4.22. With the following settings:
I'm consistently seeing 35-50k connections, which is essentially bringing our server to it's knees. Lowering it down to:
Still yields about 35-40k connections. Lowering it down to :
Still gives around 35k connections! @Stebalien There really seems to be an issue here! This seems to be somewhat of a runaway feedback loop; ones the DHT starts routing, and it's a good peer, more peers use it and it gets overloaded. Or something like that. Note that we're consistently fetching 100-150 files (ipfs-search).
|
@dokterbob @Stebalien could confirm, but I think that enabling both My understanding is that the plan is to remove serving as a relay node from IPFS and making it available through the libp2p daemon instead to minimize confusion and people shooting themselves in the foot. In the meanwhile, if you can, I'd recommend rotating your node's peerID to a new one which should restore your traffic to normal. If you need any help figuring out how to do peerID rotation that's probably best asked on discuss.ipfs.io. |
^^ That's the issue. |
@aschmahmann Great, thanks for the quick feedback! Note that the [config doc] specifically state:
Note that, by now, my server is slowly returning to normal. |
Are you noting that the current behavior is documented or is the documentation confusing? |
The latter.
|
Got it. I agree the whole flags interacting with each other is really confusing and I'll try to improve the documentation to make it less confusing. |
Actually, @vyzo, could you take a pass at this? |
Thanks!
|
Version information:
Type:
bug
Description:
While using my node, the connection counts started climbing rapidly past the
HighWater
connection setting and seemed to be stuck in a climb -- reaching 2000+ connections before I shutdown the daemon (seeipfs.peers
file in link below). At the time of the connection count climb I think I was pinning a few hashes and publishing an IPNS entry.It looks like there are a couple of old issues that sound similar (e.g., #4718, #5248) but they are closed. I wonder if this could be related to #3532, but it's not clear to me if connections are building rapidly in that issue.
My node's
LowWater
andHighWater
connection counts are set to the defaults (seeipfs.config
for full output fromipfs config show
).QUIC
andEnableAutoRelay
are both enabled, butEnableRelayHop
is not.Debug data using these instructions and
ipfs swarm peers
andipfs config show
output from after the issue started and before the daemon were killed are available here:https://ipfs.io/ipfs/QmZqhucUHSoW3WzXsu7gepmQX9NqQzkjcsQAN1r4kjQYBH
The text was updated successfully, but these errors were encountered: