A distributed key-value database (LMDB + Raft)
566
Distributed LMDB key-value store with Raft consensus, over plain HTTP.
# clean up from a previous run
docker rm -f d-lmdb 2>/dev/null
docker run -d --name d-lmdb -p 8080:8080 -v d-lmdb-data:/data deventlab/d-lmdb
# wait for bootstrap
sleep 3
# PUT: 204
curl -s -o /dev/null -w 'PUT: %{http_code}\n' -X PUT localhost:8080/kv/hello -d world
# Output "world"
curl localhost:8080/kv/hello
No config file. No setup. Single-node in one line.
Custom config or 3-node HA cluster: full docs →
| Method | Path | |
|---|---|---|
PUT | /kv/{key} | Write a value |
GET | /kv/{key} | Read a value |
GET | /kv/{key}?level=linearizable | Read with Raft consistency |
DELETE | /kv/{key} | Delete a key |
GET | /status | Cluster health |
Content type
Image
Digest
sha256:e4bfdc136…
Size
36.9 MB
Last updated
about 2 months ago
docker pull deventlab/d-lmdb