Code Monkey home page Code Monkey logo

rococo's Introduction

Rococo

[Travis-CI] (https://travis-ci.org/msmummy/rococo/) [Code Climate] (https://codeclimate.com/github/msmummy/rococo)

What is Rococo?

Rococo is a concurrency control protocol for distributed transactions. It aims to improve performance especially for contended workload and keep a strong isolation level, i.e. strict serializability.

How does Rococo work, and how does it differ?

We have an OSDI'14 paper: Extracting More Concurrency from Distributed Transactions that describes the details of Rococo. Here are a few highlights of Rococo's design points.

  • Rococo aims to reduce the overhead of blocking and aborting by applying dependency tracking between interfering transactions. Rococo tries not to abort transaction to avoid the extra cost of system aborts and retries.

  • The dependency tracking and propagating in Rococo is decentralized, and so is the rest part of Rococo. It does not have a separate layer of server(s) to (pre-)serialize the execution of transactions. The way Rococo does this is to design several states for a transaction, and each state satisfies a few invariants in a collective global state. Thus with a protocol that makes each server carefully shares only a limited part of dependencies with another server, Rococo can make a transaction commit efficiently.

  • To support transaction fragments that may generate intermediate results required by later parts of the transaction, Rococo requires an offline checking operated by the workload designers/programmers to determine when a running is safe, and when a running needs to use conventional protocols to merge fragments (and this may lead to sub-aborts inside a transaction).

What is in this repository?

This repo mainly contains the codes we used in the paper for evaluation.

There are a few concurrency control protocols here we used for comparison:

  • Two phase locking (2PL), with 2PC for validation and commit. There are three versions of 2PL with different deadlock avoiding mechanisms.
    • Wound-wait.
    • Wait-die.
    • Timeout.
  • Optimistic concurrency control (OCC), with 2PC for validation and commit.
  • Rococo.

There is a TPC-C implementation sharded by districts (rather than by warehouses in common cases) in the repo we used as benchmarks. Note that this TPC-C implementation is tweaked to be more "distributed" so the results should not be compared with stock TPC-C.

Setup

There is a simple getting started guide here.

If you are using Rococo as comparison in your project, we prefer that you email us about your testing setup and results so that we can help make sure that the results are correct.

License

Rococo uses SATA License (Star And Thank Author License, originally here), so you have to star this project before any using:)

rococo's People

Contributors

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