Distributed Hash Table (DHT) based on chord protocol
- This is a Distributed key-value (DHT) store project based on the Chord protocol.
- This system supports Restful architecture as communication betwwen nodes. This means that the nodes are connected to each other by calling the API and exchange json data foramt.
- Each node needs a address and port number to run.
- This system uses the MD5 hashing algorithm as the main hashing algorithm as well in Consistent Hashing.
- The current version support dynamic joining and leaving mechanism alongside the simulation crash feature.
System Requirement:
- python3 (as a programming language)
-2. Establish Network
Run a standalone node: python3 storageNode.py -p 3000
For running a standalone node you can use this. It run a standalone node without connecting to any node
and then we can call other nodes to join the network. Like this:
python3 storageNode.py -p 3001 localhost:3000
python3 storageNode.py -p 3002 localhost:3001
python3 storageNode.py -p 3003 localhost:3000
or by call the joining API (/join?nprime=localhost:3000)