eloqdata/eloqstore
Acerca de
Hybrid-tier key-value storage engine built on object storage & local SSDs. Engineered for batch-write efficiency and read optimization with ultra-low tail latency.
Sistemas e infraestructuraWhat you can do
- Batch Write Optimization: Copy-on-write B-tree enables high-throughput batch writes without blocking concurrent reads. MVCC-based design eliminates lock contention and provides predictable write amplification.
- Point Read Tail Latency Optimization: In-memory B-tree non-leaf nodes ensure exactly one disk I/O per point read on cold data, delivering consistent P99 latency with deterministic I/O patterns.
- Object Storage as Primary Storage: S3-compatible object storage backend provides 11 9's durability, unlimited scalability, and high availability with intelligent caching for low-latency access.
- Zero-Copy Snapshots: Copy-on-write semantics enable O(1) snapshot creation without data duplication, supporting point-in-time recovery and consistent backups.
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalEloqStore
EloqStore is a high-performance hybrid-tier key-value storage engine that combines object storage (S3-compatible) with local NVMe SSDs to deliver exceptional write throughput and sub-millisecond read latency. Built in C++ with a focus on production-grade reliability and performance.
EloqStore serves as the foundational storage layer for EloqData's database products (EloqKV, EloqDoc, EloqSQL, enabling SSD-based workloads to achieve memory-like latency characteristics while maintaining durability and cost efficiency.
For example, EloqKV on EloqStore delivers 4x higher disk access throughput compared to Redis's memory access, with 10x cost reduction, making it a viable drop-in replacement for Redis.
📋 Requirements
EloqStore uses io_uring for high-performance asynchronous I/O operations. As a result, it requires:
- Minimum OS: Ubuntu 24.04 or later (or equivalent Linux kernel 6.8+)
- Kernel: Linux kernel 6.8+ (required for full io_uring support)
- Tooling:
rsync(required for standby replication and tests). Install viasudo apt-get install rsyncon Debian/Ubuntu orbrew install rsyncon macOS.
🏗️ Architecture
EloqStore implements a multi-tier storage architecture:
- Hot Tier: In-memory B-tree index with non-leaf nodes cached for O(log n) point lookups
- Warm Tier: Local NVMe SSD for frequently accessed data with single I/O point reads
- Cold Tier: Object storage (S3-compatible) as the primary durable storage backend
The engine uses a copy-on-write (COW) B-tree structure that enables lock-free reads during batch writes, eliminating read-write contention and ensuring consistent tail latency.
✨ Core Features
Batch Write Optimization: Copy-on-write B-tree enables high-throughput batch writes without blocking concurrent reads. MVCC-based design eliminates lock contention and provides predictable write amplification.
Point Read Tail Latency Optimization: In-memory B-tree non-leaf nodes ensure exactly one disk I/O per point read on cold data, delivering consistent P99 latency with deterministic I/O patterns.
Object Storage as Primary Storage: S3-compatible object storage backend provides 11 9's durability, unlimited scalability, and high availability with intelligent caching for low-latency access.
Zero-Copy Snapshots: Copy-on-write semantics enable O(1) snapshot creation without data duplication, supporting point-in-time recovery and consistent backups.
Agent Branching: Instant branch creation for isolated data views in AI/ML workloads, enabling experimentation and multi-tenant isolation without data duplication.
🚀 Deployment Models
Self-Hosted
Deploy on-premises or in your cloud infrastructure with full control over data and operations. EloqStore is available under dual license: BSL 2.0 or AGPL v3. Complete source code access.
Cloud & Enterprise
Managed service EloqCloud offering with:
- Serverless architecture (no infrastructure management)
- High performance and fast scaling
- Enterprise-grade security and compliance
🌐 Ecosystem
EloqStore exposes a C++ API for direct integration. EloqStore powers different kinds of database products including:
- Redis/Valkey Protocol: Drop-in replacement for Redis with persistent storage
- MongoDB Wire Protocol: Document database with MongoDB API compatibility
- SQL Interface: Relational database with MySQL API compatibility
- Vector Search: Native vector indexing and similarity search capabilities
🔨 Compile
Install Dependencies
For Ubuntu 24.04, you can install all required dependencies using the provided script:
bash scripts/install_dependency_ubuntu2404.sh
This script installs all necessary dependencies including:
- Build tools (CMake, GCC, Ninja)
- System libraries (Boost, jsoncpp, zstd, etc.)
- Additional libraries (Abseil, gRPC, etc.)
Version-pinned dependencies — AWS SDK C++ (core), glog, brpc, liburing and
Catch2 — are not installed system-wide; CMake downloads and builds them
in-tree (FetchContent, pinned in cmake/dependencies.cmake) on the first
configure, which needs network access. Set the FETCHCONTENT_BASE_DIR
environment variable (e.g. ~/.cache/eloq-fetchcontent) to share the
download/build pool across build trees.
Note: This script requires sudo privileges and may take several minutes to complete.
Debug Mode
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build . -j8
cd ..
Release Mode
mkdir Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j8
cd ..
📦 SDKs
Python SDK
pip install eloqstore
from eloqstore import Client, Options
client = Client(Options(table_name="demo", partition_id=0, num_threads=1))
client.put("hello", b"world")
assert client.get("hello") == b"world"
client.close()
See python/examples/ for more usage examples.
vLLM KV Cache Connector
EloqStore also provides an external vLLM KV cache connector module:
eloqstore.vllm_connector
The current connector documentation is intentionally limited to two canonical documents:
- vLLM KV cache architecture, install, startup, and benchmark guide: docs/vllm_kvcache_guide.md
Rust SDK
Add to your Cargo.toml:
[dependencies]
eloqstore = "1"
use eloqstore::{EloqStore, Options, TableIdentifier};
let mut opts = Options::new().unwrap();
opts.set_num_threads(1).unwrap();
let mut store = EloqStore::new(&opts).unwrap();
store.start().unwrap();
let table = TableIdentifier::new("demo", 0).unwrap();
let ts = 0;
store.put(&table, b"hello", b"world", ts).unwrap();
assert_eq!(store.get(&table, b"hello").unwrap(), Some(b"world".to_vec()));
store.stop();
See rust/eloqstore/examples/ for more usage examples.
🧪 Testing
Run Unit Tests
Cloud-mode tests require an S3-compatible object storage backend. CI downloads
RustFS 1.0.0 directly on the Ubuntu amd64/arm64 runners and verifies its SHA256.
The same script can set up RustFS locally after installing the dependencies
above (curl, unzip, and sha256sum are required).
1. Download and start RustFS:
RUSTFS_RUN_DIR=$(mktemp -d /tmp/eloqstore-rustfs.XXXXXX)
bash scripts/download_rustfs.sh "$RUSTFS_RUN_DIR"
mkdir -p "$RUSTFS_RUN_DIR/data"
# These credentials match EloqStore's existing test defaults.
RUSTFS_ADDRESS=127.0.0.1:9900 \
RUSTFS_ACCESS_KEY=minioadmin RUSTFS_SECRET_KEY=minioadmin \
RUSTFS_CONSOLE_ENABLE=false \
"$RUSTFS_RUN_DIR/rustfs" server "$RUSTFS_RUN_DIR/data" > "$RUSTFS_RUN_DIR/rustfs.log" 2>&1 &
RUSTFS_PID=$!
# Wait for this check to succeed before running tests.
curl --fail --noproxy '*' http://127.0.0.1:9900/health/ready
2. Run unit tests:
ctest --test-dir build/tests/
The tests connect to 127.0.0.1:9900 by default. When finished, stop RustFS and
remove its disposable test data in the same shell:
kill "$RUSTFS_PID"
wait "$RUSTFS_PID" || true
rm -rf "$RUSTFS_RUN_DIR"
Benchmark
# An example to run eloqstore with 10GB data, with each record 1K.
# load
./build/benchmark/simple_bench --kvoptions=./benchmark/opts_append.ini --workload=write-read --kv_size=1024 --batch_size=20000 --max_key=10000000 --read_per_part=4 --partitions=1 --load
# run
./build/benchmark/simple_bench --kvoptions=./benchmark/opts_append.ini --workload=write-read --kv_size=1024 --batch_size=20000 --max_key=10000000 --read_per_part=4 --partitions=1
Install git hooks
git config core.hooksPath .githooks
The pre-commit hook auto-syncs pyproject.toml / Cargo.toml versions from VERSION.
Run once after cloning. Bypass with git commit --no-verify.
Install Format Tool
bash scripts/format.sh
This script will execute when necessary:
- Install code format tools
- Format the code
The first time this script is executed, it will install:
- libtinfo5
- clang-format(18.1.8)
Note: The main branch has code format checks; please run this script before committing the MR.
🤝 Contributing
We welcome contributions from the developer community!
- Check CONTRIBUTING.md for development guidelines
- Review GitHub Issues for planned features
- Join our Discord for discussions
- Submit PRs for bug fixes, features, or documentation improvements
Explorar proyectos relacionados
Cargando…