LMDB backend for Raft
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9ee9663 Aug 24, 2018
Permalink
Failed to load latest commit information.
.gitignore Initial commit Apr 19, 2014
.travis.yml Adding travis file Apr 19, 2014
LICENSE Initial commit Apr 19, 2014
README.md correct spelling mistake Sep 1, 2017
bench_test.go Add benchmarks Jan 31, 2015
mdb_store.go Docs typo Aug 6, 2015
mdb_store_test.go Add benchmarks Jan 31, 2015
util.go Switch to hashicorp version of msgpack Oct 18, 2014

README.md

raft-mdb Build Status

This repository provides the raftmdb package. The package exports the MDBStore which is an implementation of both a LogStore and StableStore.

It is meant to be used as a backend for the raft package here.

This implementation uses LMDB. LMDB has a number of advantages to other embedded databases includes transactions, MVCC, and lack of compaction.

The one disadvantage is because it is a C library, it requires the use of cgo which complicates cross compilation. For that reason, this is in a separate package from raft, so that clients can avoid cgo if they so choose.

Documentation

The documentation for this package can be found on Godoc here.