Introduction

Terminology

The words this manual uses for Raft DB's parts, in alphabetical order, with the MySQL word where it differs.

TermMeaning
Admin accountThe admin account of raftdb-server, created at the first start with a random password stored in admin.password in the data directory. Not the same as a MySQL account.
Bootstrap administratorA MySQL user named in raftdb-mysql's configuration (user = NAME:PASSWORD). It has every privilege and cannot be changed with SQL.
CatalogThe list of databases and tables of a server. In a cluster with table groups the catalog belongs to group 0.
CheckpointRewriting a shard's log as the shortest log that gives the same rows.
Claim tableA hidden table the SQL front-end keeps for each unique index, with one document per indexed value, so that two rows cannot have one value.
Control accountAn account with the control role (--user NAME:PASSWORD:control). It can command a node's role, limits and the leader it follows (limit that with control-peers) and cannot read or write rows.
Control planeEverything that decides who is primary and how resources are shared: the watcher quorum.
Data epochThe epoch of the primary whose history a node's log continues. Nodes compare data by (data epoch, log position).
DatabaseA directory of tables in the server; the same as a MySQL database or schema.
Dialectmysql or mariadb: which server raftdb-mysql answers as. One process, one dialect.
DocumentA binary-encoded JSON-like value; a row of a table.
EmbedRunning the server inside the raftdb-mysql process (embed = raftdb.conf).
EpochA number that only grows. Each role decree of the watcher quorum has one; a node refuses commands with a lower epoch.
FenceThe epoch and lease a server keeps so that only the legitimate primary accepts writes.
FlusherThe thread of a shard that makes the log durable and releases the parked replies.
FollowerA node that copies another node's log. Followers refuse writes. Also called a replica.
Front-endA program that speaks another database's protocol on top of Raft DB: raftdb-mysql.
TargetA number a benchmark must reach (or a comparison that must come out identical) before a feature counts as done.
Group (table group)A set of tables that have one primary at a time. groups = N on every node. The group of a table follows from its name.
Group commitMany writes made durable by one fsync.
HandoverMoving a group's primary to another node on purpose.
LeaseThe time a primary may keep writing without being renewed by its watcher.
LSMLog-structured merge tree: the disk-resident engine, engine = lsm.
NodeOne raftdb-server process of a cluster (and the machine it runs on).
Partitioned tableA logical table made of several physical tables named T~p0, T~p1, ...; rows go to a partition by key.
PrimaryThe node of a group that accepts writes. Also called the leader.
Profilesingle, primary or replica: a set of defaults and checks for raftdb-server.
Quorum (of watchers)Three or more watchers, one per node, that elect their own leader with Raft and decide which node is primary.
ReplicaA read-only copy of a primary, made by log shipping.
Rolereadonly, readwrite, admin (and control): what a raftdb-server account may do.
ShardOne thread of a table with its own log.
Strict synchronous replicationA write is acknowledged only after a configured number of followers confirmed it is on their disks.
StudioThe web tool served by raftdb-server at / when studio is set.
WALWrite-ahead log: shard-N.log.
WatcherThe raftdb-watch program.

Words that differ from MySQL's#

MySQLRaft DB
Storage engine (InnoDB)engine = memory or lsm; SHOW ENGINES shows the front-end's answer.
Binary logReplication ships the shard logs themselves; there is no separate binary log.
User ('name'@'host')A MySQL account stored by CREATE USER, or a bootstrap administrator; separate from raftdb-server's accounts.
SchemaDatabase.

See also#