Skip to content
devotionalistPublic

About

Distributed KV: Multi-Raft + RocksDB, C++ Meta/Storage/Gateway (gRPC). Range regions, RF=3. Official client: openkv-client-go.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

OpenKV

Language: English · 中文

Distributed KV store with compute/storage separation: Multi-Raft + RocksDB + gRPC (C++ Meta/Storage/Gateway). Keys live in ordered Range Regions; default replication factor 3.

License: Apache License 2.0 · Copyright 2026 devotionalist (see NOTICE)

Clients

Official SDK is Go only, in a separate repository (Gateway gRPC :19000):

Language Repository Package
Go openkv-client-go github.com/devotionalist/openkv-client-go
go get github.com/devotionalist/openkv-client-go@latest

API surface (v0.1): Dial · Get · Put/PutTTL · PutCAS · Delete/DeleteCAS · RawGet/RawPut/RawDelete · BatchGet/BatchPut · Scan/ListPrefix · TTL/Expire/Persist · DS (Hash/Set/List/ZSet).
Design notes: docs/flows/15-multi-client-sdk.md.

This repo’s client/go is in-tree tools only (examples / e2e / Meta·Storage stubs). Applications must use openkv-client-go.

Topology

openkv-client-go / skv
      │ gRPC :19000
      ▼
Compute Gateway (C++ gateway_node)  ←── MetaService gRPC ──→  Meta Raft ×3 (:8500–8502)
      │ Store / Admin gRPC
      ▼
Storage ×N (:9100…)  · per-Region Raft (RF=3) · RocksDB
      │ RaftService gRPC (peers)
      └──────────► other Storage

After make admin-run, open http://127.0.0.1:19100 for the live console. See Architecture and User guide.

OpenKV console

Documentation

Language Entry
English (default) docs/en/
中文 docs/zh/
Doc English 中文
Quick start quickstart 中文索引
User guide user-guide USER_GUIDE
Networking networking NETWORKING
Architecture architecture ARCHITECTURE
Clients 15-multi-client-sdk same
Version CAS / TTL 13 · 14 same
Scan / ListPrefix 16 same
Contributing contributing 中文
Ops / SOP / flows — ops · flows
Tests — TEST_CASES

Quick start

make          # configure + build + unit tests
make e2e      # build → start cluster → Go client → stop
cmake --build build -j --target skv
./build/tools/skv start --fresh
./build/tools/skv put hello world
./build/tools/skv get hello
./build/tools/skv stop
make cluster-up      # gateway :19000
make admin-run       # http://127.0.0.1:19100
make cluster-down

gRPC C++ is required. Details: Networking.

Features

  • Range Region sharding with Multi-Raft (default RF=3)
  • Stateless C++ Gateway + C++ Meta (Raft×3) / Storage (RocksDB)
  • Single-key version CAS and KV TTL
  • Official Go client in sibling repo openkv-client-go
  • Online split / merge / place / scale-out SOPs
  • Web console (:19100) and skv ops CLI
  • Helm charts under deploy/helm/
  • Apache-2.0

Tests

make
make e2e
# see docs/test/TEST_CASES.md and docs/test/INTEGRATION_TEST.md

Layout

proto/      gRPC definitions (authoritative IDL for clients)
common/    config, Region, logging
raft/      Multi-Raft + GrpcRaftTransport
storage/   RocksDB + Storage node (gRPC)
meta/      cluster state + scaler (gRPC)
compute/   C++ Gateway (gateway_node)
client/go/ in-tree Go tools (examples/e2e) — SDK → openkv-client-go
tools/skv/ ops CLI
web/       admin console
docs/      documentation (en + zh)
deploy/    Docker / Helm
conf/      local configs

Sibling client repo (not in this tree): openkv-client-go.

License

Licensed under the Apache License 2.0. Full text: LICENSE; attribution: NOTICE.


OpenKV(中文)

基于 Multi-Raft + RocksDB + gRPC 的存算分离分布式 KV(C++ Meta/Storage/Gateway)。分片为 Range Region,默认副本因子 3。

客户端(独立仓库)

官方 SDK 仅 Go:openkv-client-go。
说明:docs/flows/15-multi-client-sdk.md

文档: English · 中文

make && make e2e
# Gateway :19000 · 管控台 http://127.0.0.1:19100 · Meta :8500–8502

完整中文文档见 docs/zh/。

About

Distributed KV: Multi-Raft + RocksDB, C++ Meta/Storage/Gateway (gRPC). Range regions, RF=3. Official client: openkv-client-go.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages