Coder Social home page Coder Social logo

paxos's Introduction

paxos

State Machine Replication

Author: Kyle Fauerbach

This is an implementation of the Paxos state machine replication protocol as originally described by Lamport in The Part-Time Parliament. This specific implementation follows the design decisions made Kirsch and Amir in Paxos for Systems Builders. This implemenation is written in C and utilizes UDP sockets for communication. The current status of this project is that it is able to function in the normal case of operation. It goes through the Leader Election and Prepare Phases, can send a Proposal and confirm Accepts from the quorom.

Limitations:

  • There is no discovery mechanism. Peers are assumed to be known at start.
  • Reconcilliation is not implemented.
  • Does not write current state to disk.
  • Who starts the leader election. There is currently no controls on who starts the leader election. All servers will try at the same time and this could cause some churn in the system.

There is some instrumentation built in to the protocol for a demonstration that the protocol is able to select a leader and apply a client update. But there is not much in terms of an interface for another service to interact with the protocol.


For general use, code can be run as:

./paxos -p <port> -h <host file>

To implement the test instrumentation, you can use the -t flag. This will cause server 1 to generate a client update after the leader election has been completed. This allows you to see how the Proposal and Accepts are sent.

At startup, server 1 is designated to start the leader election. This is to ensure that we arrive at a stable state quickly. There currently is nothing about who should initiate leader election (i.e. sending the view change) for later views.

paxos's People

Contributors

fauer4effect avatar

Watchers

James Cloos 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.