-
-
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
Reduce the impact of the DHT #6283
Comments
If we get a laptop profile, we might want to enable autorelay by default for it as well. |
This might be unreasonable, we might want to have this be |
I'm in favor of defaulting people to dhtclient for now. This point specifically resonates with me:
My thoughts are that most people who would opt-in to be a DHT server would have somewhat of an idea what they're doing, and the nodes opting in would likely be more stable as they're intentionally configured to redistribute content. |
SGTM.
My thinking is that, at the moment, the DHT is too much overhead even for the average desktop. Fixing the issues I noted the issue description will help with that but, IMO, not even desktops should be DHT nodes till then.
Exactly. |
Requires #6287. |
My concern is that we might end up with a DHT that is vastly undersized for the scale of the network. |
I agree although I think we'll get that simply by defaulting to the "laptop" profile. However, I'd be fine defaulting the desktop profile to "dht" at first (for a slower transition). |
Keeping this as a stop gap measure sounds fine. As an experimenting user, I don't want to know about all of this. To prevent an undersized DHT I would suggest a simple test of the users hardware resources at first run. Declare some minimum threshold, and if the user exceeds that threshold, ask the user if they would like to enable some services to keep the network healthy. You would want to overestimate the minimum hardware. You don't want the user to ever have to think about ipfs is running in the background, taking precious cycles from their games/work. |
+1 to interim plan
A warning however, you should observe post patch to see if your own DHT nodes are getting hit to hard or not and if a reversal is required. |
Isn't this issue obsolete after the IPFS v0.5 version where new nodes use AutoNAT to get their node status? |
Currently, all nodes participate as full DHT servers by default. Unfortunately, this means:
ipfs daemon --routing=dhtclient
because the DHT is causing the network to DoS their system.Related work:
However, I'm wondering if we should consider an interim solution: run in
DHT-client mode by default, at least for now.
The significant drawback to this solution is that it'll make the IPFS network significantly less "p2p". That is, in a pure p2p network, all nodes are equal. On the other hands, all nodes are clearly not equal in terms of hardware so I'm not that concerned about this.
Thoughts and concerns?
cc @whyrusleeping & @daviddias?
The text was updated successfully, but these errors were encountered: