Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/indiv0/castaway

An implementation of the Raft distributed consensus algorithm in Rust
https://github.com/indiv0/castaway

Last synced: 15 days ago
JSON representation

An implementation of the Raft distributed consensus algorithm in Rust

Awesome Lists containing this project

README

        

# castaway

## Development

Build the docker container:

docker build . -t castaway:latest

Run a single build:

docker run --rm \
-v "$PWD":/usr/src/castaway \
-w /usr/src/castaway \
castaway:latest \
cargo build --release

Open a development container:

docker run --rm -it \
-v "$PWD":/usr/src/castaway \
-w /usr/src/castaway \
castaway:latest \
/bin/bash

Run an instance of castaway:

cargo run -- --tls

Run the docker container:

docker run --rm castaway:latest

To launch a cluster of containers locally:

docker-compose up --build

## Credits

* Raft interface inspired by [willemt/raft][willemt-raft]

[willemt-raft]: https://github.com/willemt/raft