GithubHelp home page GithubHelp logo

travisperson / dht-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipfs/dht-node

1.0 1.0 0.0 64 KB

Run just an ipfs dht node (Or many nodes at once!)

License: MIT License

Dockerfile 1.25% Makefile 1.24% Go 97.50%

dht-node's Introduction

Libp2p DHT Node

Run a libp2p dht node for the good of the network!

Installation

[openssl support (lower CPU usage)]
go get -u -tags=openssl github.com/ipfs/dht-node

[standard (sub-optimal)]
go get -u github.com/ipfs/dht-node

Usage

dht-node has two modes. A 'single dht' mode that has a nicer UI, this is intended to be run in a tmux window or something so you can see statistics about your contribution to the network.

The second mode is called 'many mode'. Passing the -many=N allows you to run N dhts at a time in the same process. It periodically prints out a status line with information about total peers, uptime, and memory usage.

Best Practices

Try to only run a dht-node on machines with public IP addresses. Having more dht nodes behind NATs makes dht queries in general slower, as connecting in generally takes longer and sometimes doesnt even work (resulting in a timeout).

When running with -many, please make sure to bump the ulimit to something fairly high. Expect ~500 connections per node youre running (so with -many=10, try setting ulimit -n 5000)

License

MIT - @whyrusleeping

dht-node's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.