Code Monkey home page Code Monkey logo

cs6381_distributedsystem_hash_ring's Introduction

CS6381_DistributedSystem_Hash_Ring

The package builds a small layer of middleware on top of XPUB/XSUB and consistent hash ring to support ANONYMITY, OWNERSHIP_STRENGTH and HISTORY. This package is based on the Pub/Sub middleware from Assignment#1, build for CS6381 Distributed System Assignment#2.

Collaborators

Ran Hao ([email protected]) Xiaodong Yang ([email protected]) Tong Liang ([email protected])

Dependences

When running the server node:

  • First do 'memcached -u "your username" -d -m 64 127.0.0.3 -p 11211'
  • Then run 'python hash_server.py'

Run publishers by ("zipcode" is the topic here):

  • 'python publisher.py "address of hash server" "ownership(default 2)" "zipnode(default 10001)"'

Run subscriber by:

  • 'python subscriber.py "address of hash server" "port(default 5556)" "zipnode(default 10001)"'

When running additional subscribers, if want to receive HISTORY massage, run:

python subscriber.py "address of the broker node" "port of the subscriber"

And please indicate the port for the broker: type in the address of the broker and the port number of the subscriber in the broker host window, for example, when running the broker on host 3, running the a subscriber on host 5:

Run

python subscriber1.py 10.0.0.3 1001 when give the subscriber a port of 1001 and type: 10.0.0.3 1001 on the broker's window:

Alt text

Alt text

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.