Skip to content

scuptio/scupt-raft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published