Coder Social home page Coder Social logo

pviotti / conver-old Goto Github PK

View Code? Open in Web Editor NEW
18.0 7.0 1.0 814 KB

[discontinued, see pviotti/conver] Practical verification of non-transactional consistency models.

License: Apache License 2.0

Erlang 86.29% Shell 11.71% Makefile 2.00%
consistency databases testing verification

conver-old's Introduction

Con:heavy_check_mark:er Build Status

Conver verifies implementations of the most common non-transactional consistency models.
It spawns client processes that perform concurrent reads and writes on the distributed store, and records their outcomes. After the execution, it builds graph entities that express ordering and mutual visibility of operations. Finally, it uses such graph entities to check consistency semantics defined as first-order logic predicates.

The approach implemented in Conver has been described in this PaPoC 2016 paper.

NOTE: this project is currently unmaintained. I decided to rewrite it in Scala for practical convenience. The Scala version features a linearizability checker (which this project lacks), and improved consistency checks.

Features

Datastores currently supported: ZooKeeper and Riak.

Currently, Conver can verify the following consistency semantics: Monotonic Reads, Monotonic Writes, Read-your-writes, PRAM, Writes-follow-reads, Causal and Strong Consistency (regularity).
To have an overview of the consistency models verified by Conver, see this survey.

Besides textual output, Conver generates a visualization of the executions, highlighting the violations of consistency models.

Conver execution

Getting started

Once installed Erlang/OTP (R18+), to build Conver issue:

$ make

The dstores folder contains scripts to build and locally run Docker clusters of different storage systems.
For instance, to build and run a cluster of ZooKeeper servers issue make build-zk and make start-zk.
To query the cluster status use make status-zk, and to stop it make stop-zk.
Additionally, the script dstores/net.sh offers functions to simulate slow and lossy networks.

Once the storage system is running and its configuration parameters are recorded in conver.conf, to run a Conver test issue:

$ ./conver run <num> <mock|zk|riak>

where num is the number of client processes (e.g., 3), followed by a string that identifies the store under test (mock for a dummy in-memory store consisting of Erlang's ets, zk for ZooKeeper, riak for Riak).

For comparison, you can run a traditional property-based test suite on the dummy in-memory database using PropEr by issuing ./conver proper.

Similar projects: Jepsen, Hermitage.

Authors and license

Conver has been developed at EURECOM.
License: Apache 2.0.

conver-old's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

russelldb k32

conver-old's Issues

Fix process naming

Processes can't be more than the letter of the alphabet. Find a more scalable way to name processes.

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.