chord_protocol_go

command module
v0.0.0-...-2e37a5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

README

Chord Protocol Implementation + Web Visualizer in Go using ZeroMQ

Background

Authors
Disclaimer

This was a semester project completed on a deadline, so there are likely bugs.


Instructions

  1. Clone/download/unzip the project repository into the src folder of your go development folder
  2. Run go build ./main.go from the root of the project directory
  3. Run ./main
  4. Try it out at http://localhost:8080/visualize

Visualizer

Table
  • table of Node data ranked by their id
  • The columns represent the Successor, Predecessor, and Finger table entries
  • The operations are to Join, Orderly Leave, and leave
  • You may need to click some of the links more than once
Buttons
  • The textfield next to the "Add Nodes" button can be used to add a set number of nodes. (10 is a good starting number)
  • The "Random Join" button will have a node randomly join
Chart
  • Nodes are draw on the cicle based on their id
  • When nodes are not in the ring, they are red
  • When nodes are in the ring, they are green
  • The blue line represents a successor
  • The red lines represent finger table entries
  • If you look closely at the lines, you'll notice that some of the lines don't touch their target. This is intended. The end where the line does not touch the circle is the end (aka the target).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL