Requirements
What you need to run Raft DB: operating systems, memory, disk, ports and optional tools.
Raft DB is closed source and free. You get the programs from the Download page. On Windows the download is one setup file that installs everything (Installing Raft DB); otherwise you unpack the download. install-service registers the raftdb-server you unpacked (see Running as a service).
The programs have no third-party runtime to install. Nothing needs to be downloaded after you have unpacked them.
To run#
| Item | Requirement |
|---|---|
| Operating system | Windows x86_64 (most tested), Linux x86_64 (tests run). Others are designed for but not run: see Platforms. |
| CPU | Any 64-bit CPU; x86_64 uses SSE2, SSE4.2 and SHA fast paths when present and falls back to portable code otherwise. |
| Memory | The default engine keeps every table in RAM, plus about 15.7 bytes per entry of overhead for the key-to-document collection and the binary form of every document (about 0.44 of its JSON size). Size the machine for the data. The lsm engine allows data larger than memory: memory use is about shards x (memtable + block cache share). |
| Disk | The log of each shard plus checkpoints. The log grows with every overwrite and delete until a checkpoint rewrites it; leave room for at least twice the live data. Use a disk whose fsync is honest; every acknowledged write waits for it. |
| Ports | raftdb-server: 7480 by default (binary protocol, HTTP, Studio). raftdb-mysql: 127.0.0.1:3307 by default. The watcher's status page: status_port (off by default). Cluster watchers need their peer ports reachable. |
| Clock | A cluster relies on monotonic clocks that run at about the same speed; no clock synchronisation is required. |
Optional#
| Tool | Used for |
|---|---|
A MySQL or MariaDB command-line client (mysql, mariadb) | Connecting to raftdb-mysql by hand. |
| Java and a JDBC driver | Connecting Java applications through the MySQL protocol. |
curl | HTTP examples, watcher notifications to HTTPS endpoints. |