Administration
Configuring, running, logging, monitoring, backing up and tuning a Raft DB server, with the limits stated honestly.
- Administration overview: What an administrator of Raft DB looks after, which programs are involved, and a map from each task to the page that covers it.
- Configuration reference: How settings are found, merged and checked for the server, the SQL front-end and the watcher, where each setting is documented, and how to apply a change.
- Logs and tracing: Where each program writes its messages, how to switch on statement tracing and profiling in the SQL front-end, the watcher's event log, and fatal-error reports.
- Data directory layout: What the server keeps on disk, how big it gets, how it is protected and what must never be done to it.
- Write-ahead log and checkpoints: How the write-ahead log makes writes durable, how group commit works, what recovery does at start, and how to rewrite a log with a checkpoint.
- Backup and recovery: What exists today (cold file copies, replicas, the log as the recovery record), what does not (a backup tool, online backup, point-in-time recovery), and how to plan around it.
- Monitoring with the watcher: What raftdb-watch checks, how it opens incidents, fixes basic problems and reports, every single-node setting with its default, the status page and how to set it up under systemd.
- HTTP administration API: The administration endpoints of raftdb-server on its HTTP port: login, server and statistics, databases and tables, checkpoint, promote and the control interface, with roles and error rules.
- System variables: How SET, SET GLOBAL and SHOW VARIABLES behave in the SQL front-end, where the default values come from, which variables change behaviour, and what is not persistent.
- Upgrades: What is known about on-disk and wire compatibility between versions, the staged updates the watcher can do (version folders, read-only checks, staging, switching with automatic rollback, a one-node-at-a-time cluster roll; off by default), and a cautious procedure for replacing a binary.
- Running as a service: How raftdb-server install-service sets up a systemd unit or a Windows startup task, what the unit does, how to remove it, and what exists for raftdb-mysql and raftdb-watch.
- Resource use and tuning: The settings that change how much CPU, memory and I/O Raft DB uses and how fast it answers: shards, engine, one process or two, spinning, the allocator cache, synchronous replicas, and resource control by the watcher.
- Limits: The hard limits and design limits of Raft DB: names, sizes, connections, protocol and HTTP limits, SQL limits, replication limits and the things the design does not do.
- Import and export of SQL scripts: Moving whole databases in and out of Raft DB as mysqldump files and as SQL Server (SSMS) scripts with the program raftdb-dump, what is checked against MySQL and MariaDB, and what is refused.
- Notifications, log shipping and the watcher assistant: How the watcher tells an administrator about problems today (file, command, email by SMTP with STARTTLS or TLS, an HTTP or HTTPS webhook with headers and formats, a retrying disk queue, routing, digests, quiet hours, redaction, a test command, log shipping to a webhook, a file or an email digest, and cluster events from the quorum leader), the watcher assistant that identifies known issues by built-in rules and fixes only what is on a fixed safe list (built and tested; **no language model is shipped**), and what is still planned (one sender per cluster, a language model).