KyteStore is a plugin-first, general-purpose distributed BLOB storage system that can power your database, object store, and more.
NOTE:
- KyteStore (2.0) is a rewrite of the existing commercial product KyteStore 1.0 via AI-assisted coding.
- KyteStore is currently under active development, and all contributions are welcome.
- KyteStore is currently NOT production ready, please use it with caution.
Get started · C and C++ SDK guide · Release notes
- Plugin First. Plugins build on the public Blob C API, directly or through its C++ wrapper. This lets adapters expose database or object-storage APIs while sharing the same Blob I/O path. SDK plugin design
- Append-only Blobs. Append bytes, read one or more ranges by absolute offset, and publish the latest length with
SyncorClose. The C11, C++17 and Java 17 SDKs support synchronous and asynchronous data I/O. - Replication and erasure coding. Choose the replica count or Reed–Solomon geometry per Blob.
EC_UAWprotects partial stripes with replicated redo and accepts byte-granular appends.EC_AWaccepts full stripes. Protection modes - Zero-copy I/O. ChunkFS shares DMA-backed pages with the RPC path for eligible transfers. CRC32C protects RPC payloads and stored pages. Chunk layout
- Run-to-completion with SPDK. One ChunkServer serves each disk. Photon coroutines submit I/O and handle SPDK completions on the disk's owner thread. The standard Linux configuration uses SPDK blobstore over direct AIO. Storage configuration
C applications call the public ABI in libkytestore_sdk. The C++17 wrapper and Java 17 JNI binding use the same ABI. SDK interface · Java SDK guide
The RocksDB plugin opens the same logical database directory from one Primary and multiple read-only Secondary processes. It builds separately against an installed KyteStore SDK. The diagram also shows SDK extension points for a KV Cache API and distributed filesystems. RocksDB user guide
The SDK discovers services through RootServer and caches Chunk Group routes from MetaServer. With a cached route, the SDK sends Append and PRead directly to the ChunkServer process that owns the target disk. Each process runs Photon and ChunkFS and submits I/O through SPDK. System design and guides
| Role | Alibaba Cloud instances | Deployment |
|---|---|---|
| Storage | 8 × ecs.i5.2xlarge (8 vCPU, 64 GiB each) |
One ChunkServer per local NVMe SSD, 20 Gbit/s per host |
| Clients | 4 × ecs.c9ae.24xlarge (96 vCPU, 192 GiB each) |
4 clients × 4 SDKs, 50 Gbit/s per host |
| Control | 1 × ecs.g8i.4xlarge (16 vCPU, 64 GiB) |
RootServer, MetaServer and PostgreSQL on tmpfs |
With EC_UAW 4+2 and 512 KiB I/O, the four clients sustained 8.631 GiB/s sequential append and 15.919 GiB/s random read over separate five-minute windows. A fresh-SDK read replay reached 15.779 GiB/s. Full report (2026-12-05) · Reproduce the benchmark · Local workloads · Packaged workload examples
From the repository root on Linux, use build.sh to create a release package in output/. The default toolchain is Clang with libc++. One-time dependency setup
./build.sh --jobs 8To include the Java JAR, Maven POM and JNI library in the SDK package, use ./build.sh --bindings=java with a Linux JDK 17 or newer.
For a local installation, choose a prefix and use it for the single-node quickstart.
export KYTESTORE_PREFIX="$HOME/.local/kytestore"
./build.sh --install-only --output "$KYTESTORE_PREFIX"
"$KYTESTORE_PREFIX/bin/chunk_tools" --versionDaily builds run the full local test suite with PostgreSQL, Photon and SPDK before packaging. GitHub requires basic and mock unit tests to cover at least 90% of added or modified executable core C/C++ lines in src/ and include/. The coverage check also reports the overall percentage for that scope. Test and coverage guide
Run ./build.sh --help for build options. Packaging guide
After ./build.sh has produced the SDK, build RocksDB from the repository root with one command.
./build_plugins.sh --plugin rocksdbThe script uses output/release/sdk/, or output/debug/sdk/ when only a debug SDK is present. It initializes the pinned plugin dependencies on first use, runs the plugin tests and writes the versioned archive and its SHA-256 file to output/rocksdb/. The package includes db_bench, ldb and sst_dump. Use kyte-rocksdb-admin to run read-only inspections against a live logical database. Pass --sdk PREFIX to select another SDK. Use ./build_plugins.sh --plugin rocksdb --help for the remaining options. Operator commands · Run the Primary and Secondary example
The Primary and each Secondary use the plugin to open the same RocksDB directory in KyteStore. Their SDKs resolve file locations through the control plane and read or write file bytes directly on the ChunkServers. How a Secondary sees a write
Use an existing PostgreSQL database and a filesystem that supports direct I/O. The quickstart creates the service schemas, starts all three servers and reads back a single-replica Blob. Single-node quickstart
Inspect a running service's queues, settings and logs through its management port. Open a server dashboard · Deploy the cluster console
For an Alibaba Cloud benchmark, run python3 deploy/aliyun/lab.py init once, then python3 deploy/aliyun/lab.py bench. Review the mini-cluster price and time limit, and retrieve the Blob I/O results from OSS. Cloud test lab
Give the SDK, MS and CS the RootServer seeds for one cluster. The SDK accepts C or C++ options or a YAML file. All three servers accept startup flags and per-role YAML files. RS can optionally register itself with a Consul agent after its metastore is ready. The packages include configuration examples under share/kytestore/examples/. Service discovery and startup configuration
export PATH="$KYTESTORE_PREFIX/bin:$KYTESTORE_PREFIX/tools:$PATH"This example reads two random bytes from an existing Blob with one MultiPReadAsync call. Link KyteStore::sdk and pass a RootServer address and Blob name. Build and run the C and C++ examples
Complete C++17 example
#include <kytestore/cpp/sdk.h>
#include <future>
#include <iostream>
#include <random>
#include <utility>
class Completion final : public kytestore::BlobCompletion {
public:
std::promise<kytestore::Status> result;
void Done(kytestore::Status status) noexcept override {
auto signal = std::move(result);
signal.set_value(std::move(status));
}
};
int main(int argc, char** argv) {
if (argc != 3) return 2;
kytestore::Sdk sdk;
kytestore::BlobId id{};
kytestore::BlobStat stat{};
kytestore::BlobHandle reader;
auto s = sdk.Initialize({argv[1]});
if (s.ok()) s = sdk.LookupBlobId(argv[2], id);
if (s.ok()) s = sdk.StatBlob(id, stat);
if (s.ok()) s = sdk.OpenBlob(id, kytestore::BlobOpenMode::ReadOnly, reader);
if (!s.ok()) return 1;
if (stat.first_valid_offset == stat.used_size_bytes) return 0;
std::random_device rng;
std::uniform_int_distribution<uint64_t> pick(stat.first_valid_offset, stat.used_size_bytes - 1);
unsigned char bytes[2]{};
kytestore::BlobReadRange ranges[] = {{pick(rng), &bytes[0], 1, 0, {}}, {pick(rng), &bytes[1], 1, 0, {}}};
Completion done;
auto finished = done.result.get_future();
s = reader.MultiPReadAsync(ranges, 2, done);
if (!s.ok()) return 1; // Only admitted requests deliver a callback.
if (!finished.get().ok()) return 1;
for (size_t i = 0; i < 2; ++i) {
if (ranges[i].bytes_read != 1) return 1; // The retained range may have changed since StatBlob.
std::cout << ranges[i].offset << ' ' << static_cast<unsigned>(bytes[i]) << '\n';
}
}A Blob has one active writer, a name of 1–1,024 bytes and up to 128 GiB of retained data. An Append or PRead accepts up to 64 MiB. MultiPRead accepts up to 128 ranges totaling 64 MiB. SDK contracts
We welcome bug reports, reproducible workloads and focused pull requests. Contribution guide · Issues
KyteStore is licensed under AGPL-3.0-only. License · Third-party notices

