Scaling
EntropyDB scales up, not out: one node, or a three-node replicated cluster in which every node holds all the data.
No sharding
EntropyDB does not partition data across nodes. In a cluster, every node stores every key, and every write goes through the Raft leader. Adding nodes improves availability. It does not add storage capacity or write throughput. There are no cross-shard transactions and no multi-region replication.
Scaling one node
- Memory. Give the JVM heap at most about 45% of the container or VM memory. RocksDB's block cache and memtables live outside the heap. At 60%, cluster nodes were OOM-killed under load. Give it at least 1 GiB, and 2 GiB per node for a cluster under load.
- Disk. Use SSD storage. Backups and compaction need free space beyond the data itself.
- Queries. SQL primary-key lookups use the key. Everything else is a table scan, because there is no
CREATE INDEX. Range conditions on the primary key also scan. Model your access paths around primary keys.
Three-node cluster
openssl rand -hex 32 # put it in .env as ENTROPYDB_CLUSTER_SECRET
docker compose -f docker-compose.cluster.yml --env-file .env up -d --build
bin/entropydb-cluster statusWhat was verified on one Docker host (2026-11-14):
- Writes keep working when one node is killed. They pause for about 15 s while a new leader is elected.
- A node that was down catches up when it restarts, including by snapshot after a long absence.
- A rolling restart under write load lost no acknowledged write.
- Concurrent transactions on different nodes are serialized correctly. A conflicting commit returns
409 TRANSACTION_CONFLICT.
Reads served by a follower can be slightly stale. The whole replicated data set must fit in each node's heap so that a lagging node can catch up by snapshot. Multi-host clusters and network partitions have not been tested.
Measured performance
Throughput and latency for each data model, from one machine with its hardware stated, are in docs/operations/benchmarks.md. Run scripts/benchmark.py against your own deployment before relying on any number. See also Performance Tuning.