Intro
LogCabin is a distributed system that provides a small amount of highly replicated, consistent storage. It is a reliable place for other distributed systems to store their core metadata and is helpful in solving cluster management issues.
We've written a paper about the Raft consensus algorithm which LogCabin uses internally. A draft of this paper is available : read it here (PDF).
Source code
The source code is here: https://github.com/logcabin/logcabin
...
Viewstamped Replication: A New Primary Copy Method to Support Highly-Available Distributed Systems (PODC '88)