Skip to content

zjiang23/raft-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raft-rs

master: Build Status dev: Build Status

Getting started

First, you need the nightly rust compiler.

curl -L https://static.rust-lang.org/rustup.sh > rustup
chmod +x rustup
./rustup --channel=nightly

Next, you need capnproto

git clone https://github.com/sandstorm-io/capnproto.git
cd capnproto/c++
./setup-autotools.sh
autoreconf -i
./configure
make -j6 check
sudo make install

Finally, clone the repository and build it:

git clone -b dev https://github.com/paenko/paenkodb && \
cd paenkodb/src/document && \
cargo build && cd ../../

Now, you can start a database cluster with docker:

cd docker && docker-compose up

or use the bash:

./src/document/target/debug/document server <PATH-TO-CONFIG>

You can copy the config from docker_build/config/config.toml

You can find the test scripts in test directory.

FAQ

I'm getting the error "failed to run custom build command for openssl-sys v0.9.8". How do I fix this?

Follow the instructions on https://github.com/sfackler/rust-openssl - install pkg-config and libssl-dev 👍

I'm getting the error "error: could not exec the linker cc: No such file or directory (os error 2)" How do I fix this?

You need to install gcc.

Documentation

About

[Incomplete] A Raft implementation in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.1%
  • Cap'n Proto 2.6%
  • Shell 0.3%