项目作者: heidi-ann

项目描述 :
Raft一致性算法的实现
高级语言: OCaml
项目地址: git://github.com/heidi-ann/ocaml-raft.git
创建时间: 2013-08-06T09:54:56Z
项目社区:https://github.com/heidi-ann/ocaml-raft

开源协议:MIT License

下载


ocaml-raft Simulator

Build Status

This is a complete implementation of base Raft consensus algorithm (not inc. membership changes and log compation). This project is described in detail in this tech report

The simulator runs as either a discrete event simulator or a realtime simulator, in a range of network conditions.

To build run build.sh and to learn how to use the command line run ./cmdstart.byte --help.
If you are familiar with OCaml, using an OCaml configure file for your simualation is your best bet.

JS trace viewer

The following is an example of how to generate a trace from the command line and run through the output in javascript

  1. $ cd ocaml-raft
  2. $ make
  3. $ /cmdstart.byte discrete -nodes 3 -follower Uniform-150-155 -candidate Uniform-11-22 -leader Fixed-75 -delay Fixed-7 -termOnTimeout 50000 -termOnElec -cmds 0 -backoff -json > output.json
  4. $ cat output.json | python vis/parseJSON.py > vis/data.json
  5. $ cd vis
  6. $ python -m SimpleHTTPServer 8000