Getting started

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#

ItemRequirement
Operating systemWindows x86_64 (most tested), Linux x86_64 (tests run). Others are designed for but not run: see Platforms.
CPUAny 64-bit CPU; x86_64 uses SSE2, SSE4.2 and SHA fast paths when present and falls back to portable code otherwise.
MemoryThe 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).
DiskThe 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.
Portsraftdb-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.
ClockA cluster relies on monotonic clocks that run at about the same speed; no clock synchronisation is required.

Optional#

ToolUsed for
A MySQL or MariaDB command-line client (mysql, mariadb)Connecting to raftdb-mysql by hand.
Java and a JDBC driverConnecting Java applications through the MySQL protocol.
curlHTTP examples, watcher notifications to HTTPS endpoints.

See also#