Changelog and roadmap

Version 0.0.5

What 0.0.5 adds and fixes (parallel send to followers, placement rules, staged updates switched by the watcher, a replication-account fix) and what is only designed.

The other changelog pages are the older, area-by-area record. This page is the first one organised by version.

Added#

  • Parallel send to the followers, ship-early (off by default). The primary's log reports bytes written before its sync, so a follower writes while the primary syncs. A client is still answered only after the primary and the required number of followers hold the write. See synchronous replication.
  • Placement rules. Node labels, rules for * and table= selectors with copies, spread, within, not_in, sync, read and prefer, a watcher that adds missing copies and never deletes data, weighted placement by capacity, reads from the least loaded eligible copy with read-your-writes, and gathering of queries over partitioned tables. See placement rules.
  • Cluster control. A health table shared by the watchers: a node is down only when two observers agree, the decision survives a change of leading watcher, and a node is up again only after a hold time; maintenance on and off (node health). Servers no longer name a down node to clients. A leading watcher whose own node is dead hands the lead over. Copies of a dead node's groups start from the health table, groups most at risk first. One configuration set for the whole cluster, applied by every watcher and every server without a restart, with a table of who applied, refused or still waits (live configuration); settings that need a restart are applied by a rolling restart, one node at a time.
  • Staged updates switched by the watcher (off by default). With update_mode = apply, a maintenance window and the stop/start commands, the watcher switches a node to a staged version, checks it (answers, reports the new version, takes a test write on a primary, stays up) and puts the old version back on any failure, also after a crash in the middle; raftdb-watch update rollback goes back on request, and the previous version is kept for one week. In a cluster one plan, given to the master watcher, switches the nodes one at a time with the primary handed over first, and stops at the first failure. A node without internet can take the files from a peer watcher, checked the same way. No release signing key is set yet, so nothing is downloaded or switched from the website automatically. See upgrades.
  • New server settings: ship-early, labels, lag-beacon-ms, read-wait-ms, gather-timeout-ms, gather-max-inflight, gather-max-take, gather-max-groups. New watcher settings: placement_down_after_ms, placement_max_jobs, placement_max_jobs_per_node. See server options.

Fixed#

  • A replica that logged in with the replication role account (the replicator account of the primary profile) followed nothing and reported no error, because the catalog request listed only databases the account may see and that role has no data access. It now sees every database it may follow. A test covers it.
  • Lint findings that blocked clippy -D warnings in three crates.

Designed, not built or only partly built#

  • Updating the watchers themselves during a cluster roll and the release signing key for staged updates: see upgrades.
  • Cluster control, still open: refusing writes to a group below the rule's min.
  • Notifications, log shipping and the watcher assistant are built except a bundled language model: see notifications and the assistant.

Upgrading to 0.0.5#

Replace the programs on each node in turn, followers first, and upgrade every watcher before you set the first placement rules. This version raises the native protocol to version 5 and adds the placement map (format 2) kept in the watcher quorum. The live three-node cluster was upgraded this way from 0.0.4 with every table compared with a snapshot taken before; the only difference was the node heartbeat file. Take a backup first as always.