question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ask user if he want's to enable dht (instead of just running a client)

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently, the default config is using Routing.Type = 'dhtclient'. This isn’t really scaling if we onboard more and more desktop clients.

Describe the solution you’d like We should ask the user if he/she if she likes to contribute more to the network and has a stable non-metered internet connection + runs the computer usually for several hours.

Something along these lines.

This would help the network in the long run, as the desktop users get aware of the fact that they do run an ipfs node, but only using network resources.

If a node isn’t properly accessible autonat should disable the dht server functionality anyway, right?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
RubenKelevracommented, Aug 3, 2021

@AlexxNica So I ran the test. Battery consumption is pretty low on a idling desktop on my laptop so I had to plan two days without having to use the laptop to run it - sorry for the delay.

Test procedure:

  • Wifi/Bluetooth off
  • 4G on with 5/5 bars signal strength
  • Operating System: Windows 11
  • ipfs 0.9.1 (console version)
  • ipfs default settings, except turning Swarm.EnableAutoRelay on
  • daemon was started with gc + pubsub + namesys-pubsub and routing overwrite depending on the test.
  • freshly generated node previous to each test
  • let it run 5 minutes on power supply power, to complete the bootstrapping
  • started it at 2 am local time in Europe both times
  • display was turned on with 60% brightness
  • a webcam recorded the test and I wrote down the time when windows turned off the display
  • test ran the battery down to 1%
  • I stopped the Windows updates, by pausing them for one week prior to the first test
  • Hardware: Intel i5-1135G7, 16 GB memory, integrated Intel graphics, NVMe storage and a 14 inch display

The first test was with dhtserver which ran 12:50 h and used 891 MB traffic.

The second test was with dhtclient which ran 13:55 h and used 661 MB traffic.

In theory there’s a Samsung specific setting to conserve a bit more power, but I haven’t used it to make the test less hardware depended.

1reaction
2colorcommented, May 19, 2022

Removing hardcoded --routing preference sounds like a better allocation of time, and can act as a forcing function to improve go-ipfs (if needed).

Makes sense.

I’ll give this a go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DHT, Enable or Disable - The Seedbox Company
When a BitTorrent client obtains a metainfo file (Torrent file) containing the "private=1" key-value pair, it MUST ONLY announce itself to the private...
Read more >
libtorrent disable dht and lsd in the session - Stack Overflow
Basically we want to change these default setting fields: enable_lsd, enable_dht, enable_upnp, enable_natpmp and then create a session object ...
Read more >
In simple terms, how does a BitTorrent client initially discover ...
Imagine this scenario: Someone who wants P2P to stop goes out and prepares an attack on all commonly used stable DHT nodes which...
Read more >
DHT enabled or not - BitComet General Discussion
DHT is not a security risk. There are some rumors that it's a risk on private trackers and can allow leeching, but this...
Read more >
IDS/IPS Alerts: What are they, what action is needed
Just about anyone using a 'private' torrent tracker would have DHT disabled, as there is no benefit there. IPS is on, so the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found