GithubHelp home page GithubHelp logo

imdea-software / swiftpaxos Goto Github PK

View Code? Open in Web Editor NEW
11.0 8.0 2.0 92 KB

Prototype implementation of SwiftPaxos (NSDI 2024)

License: MIT License

Go 100.00%
concensus distributed-systems key-value-store state-machine-replication

swiftpaxos's Introduction

SwiftPaxos: Fast Geo-Replicated State Machines

Go Report Card

This repository contains the prototype implementation of SwiftPaxos, a new state-machine replication protocol for geo-distributed systems. SwiftPaxos is a faster Paxos without compromises. In the best case, it executes a state-machine command in two message delays (one round-trip), and three otherwise. SwiftPaxos was presented at the 21st USENIX Symposium on Networked Systems Design and Implementation (NSDI '24).

Installation

git clone https://github.com/imdea-software/swiftpaxos.git
cd swiftpaxos
go install github.com/imdea-software/swiftpaxos

Implemented protocols

Protocol Comments
SwiftPaxos See our NSDI'24 paper for the full details.
Paxos The classic Paxos protocol.
N2Paxos All-to-all variant of Paxos.
CURP CURP implemented over N2Paxos.
Fast Paxos Fast Paxos with uncoordinated collision recovery.
EPaxos A corrected version of EPaxos.

This software is based on the Egalitarian Paxos code base, as well as the corrections made here.

Usage

participants

There are three types of participants: master, servers and clients. The servers and clients implement the protocol logic. The master maintains the configuration of the system.

deployment configuration

To setup a run, the participants read deployment configuration file. See aws.conf for an example of configuration file for AWS EC2.

launching a participant

Master:

swiftpaxos -run master -config conf.conf

Server:

swiftpaxos -run server -config conf.conf -alias server_name

Client:

swiftpaxos -run client -config conf.conf -alias client_name

command line options

-alias alias
    An alias of this participant
-config file
    Deployment config file (required)
-latency file
    Latency config file
-log file
    Path to the log file
-protocol protocol
    Protocol to run. Overwrites protocol field of the config file
-quorum file
    Quorum config file
-run participant
    Run a participant

See quorum.conf and latency.conf for an example of quorum and latency configuration files.

Flint

To have an idea on how different replication protocols would compare, we wrote a tool named Flint. Flint takes as input a set of AWS regions. It computes the expected latencies and estimates how the protocols perform in such a deployment.

swiftpaxos's People

Contributors

otrack avatar vonaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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