Coder Social home page Coder Social logo

chubby's Introduction

chubby

A (very simplified) implementation of Chubby, Google's distributed lock service, written for COS 518, Spring 2019.

Instructions

To bring up five Chubby nodes in individual Docker containers, run docker-compose up. Superuser privileges may be required.

Chubby nodes can also be run locally as individual processes. To build, cd into the chubby subdirectory and run make chubby. We can bring up three Chubby nodes as follows:

  1. First node: ./chubby -id "node1" -raftdir ./node1 -listen ":5379" -raftbind ":15379"
  2. Second node: ./chubby -id "node2" -raftdir ./node2 -listen ":6379" -raftbind ":16379" -join "127.0.0.1:5379"
  3. Third node: ./chubby -id "node3" -raftdir ./node3 -listen ":7379" -raftbind ":17379" -join "127.0.0.1:5379"

Example Chubby clients can be found in the cmd folder. To run, build using make [CLIENT NAME], then run the resulting executable (e.g., make simple_client; ./simple_client).

chubby's People

Contributors

jiujianxian avatar sherrybai avatar

Watchers

 avatar  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.