Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
leo_backend_db is a wrapper library for Basho bitcask, Basho eleveldb and Erlang ETS. They are used as local KVS in LeoFS.
Erlang Makefile
Failed to load latest commit information.
include Bump leo_backend_db to 0.14.3
priv Move basho_bench's codes to priv-dir
test Add a test-case to check traversaling records
.gitignore Import making rst script
.travis.yml Update required version for travis
LICENSE Initial import
Makefile Update the version number of Erlang
dialyzer.ignore-warnings Fix ignorance of warnings Modify script of making docs
rebar Bump rebar
rebar.config Move erocksdb support to feature/rocksdb-support, which will be merge…


Build Status

Build Information

  • leo_backend_db uses rebar build system. Makefile so that simply running "make" at the top level should work.
  • leo_backend_db requires Erlang R15B03-1 or later.


$ git clone
$ cd leo_backend_db
$ make
$ mkdir test_db
$ erl -pa ebin deps/*/ebin
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit halfword] [smp:2:2] [async-threads:10] [kernel-poll:false]

Eshell V5.10.4  (abort with ^G)
1> leo_backend_db_api:new(test_leveldb, 2, leveldb, "test_db"). # third argument can be one of 'bitcask', 'leveldb', and 'ets'.
2> leo_backend_db_api:put(test_leveldb, <<"key1">>, <<"val1">>).
3> leo_backend_db_api:get(test_leveldb, <<"key1">>).
4> leo_backend_db_api:stop(test_leveldb).

Usage in LeoFS

leo_backend_db is used in leo_object_storage and leo_mq.


leo_backend_db works to handle the backend database of LeoFS. It manages the stored objects in LeoFS.


backend_db is also used to manage message queue among the LeoFS storage nodes.


leo_backend_db's license is "Apache License Version 2.0".

Something went wrong with that request. Please try again.