GithubHelp home page GithubHelp logo

ybbh / scupt-raft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scuptio/scupt-raft

0.0 0.0 0.0 2.65 MB

License: Apache License 2.0

Shell 0.11% Python 0.48% Rust 60.27% TLA 37.59% Dockerfile 1.55%

scupt-raft's Introduction

scupt-raft

TLA+ verified Raft consensus

build

Specification-Driven Development of Raft Consensus

Prerequisite

  1. Download and install TLA+ toolbox

  2. Download and install sedeve-kit

    git clone https://github.com/scuptio/sedeve-kit.git
    cd sedeve-kit
    cargo install --path .
    
  3. Configure the TLA+ toolbox

Run model check

Model setup, filling constant

Constant example MC

After checking finish, output state database.

Generate trace of the model

Use the state database the toolbox output, generate trace file.

Example,

cd scupt-raft
sedeve_trace_gen  \
   --state-db-path /tmp/raft_action.db  \
   --out-trace-db-path /tmp/raft_trace.db \
   --map-const-path  ./data/raft_map_const.json

After finish executing, the output trace would be store in database file '/tmp/raft_trace.db'

Validate by running deterministic testing

Write test code

Example test_raft.rs

Test Coverage

Test Coverage in Docker

Build docker environment

Dockerfile

   cd docker
   docker build .

scupt-raft's People

Contributors

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