logcabin / liblogcabin

An attempt to split the Raft library out of LogCabin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LibLogCabin

Raft Consensus in C++, based on LogCabin's implementation

== Build pre-requisites ==

  • scons
  • g++
  • protobuf
  • cryptopp
  • folly

On Ubuntu packages can be installed with:

% sudo apt-get install scons build-essential protobuf-compiler libprotobuf-dev autoconf

cryptopp can be installed from source:

% git clone http://github.com/tnachen/cryptopp; cd cryptopp; git checkout 5_6_1_fixes; make

% sudo make install

folly also can be installed from source (follow folly's README for pre-reqs):

% git clone http://github.com/facebook/folly; cd folly/folly; git checkout v0.57.0;

% autoreconf -ivf && ./configure && make

% sudo make install

% sudo ldconfig

== Build instructions ==

Go into liblogcabin parent folder and run:

% scons

== Tests ==

After building, run the test program

% ./build/test/test

Or running particular test(s):

% ./build/test/test --gtest_filter="RaftIntegration"

About

An attempt to split the Raft library out of LogCabin

License:Other


Languages

Language:C++ 94.9%Language:Protocol Buffer 3.4%Language:Python 1.5%Language:C 0.1%