aboutsummaryrefslogtreecommitdiffstats
path: root/docs/operations.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-30 18:04:00 +0000
committertv <tv@krebsco.de>2026-11-30 18:04:00 +0000
commit4deaec75e49b7f0853c2b82bbcce129d19dcff51 (patch)
tree2a6f047785b7a77428b126ccde5b68c4991c524f /docs/operations.md
parente5906aee9199ef9f92d9005b97b7b75fb09e97b4 (diff)
docs: moving a swarm holding a store to sets of events
operations.md says how, step by step; document.md what is built of it; the change log that it is there.
Diffstat (limited to 'docs/operations.md')
-rw-r--r--docs/operations.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/operations.md b/docs/operations.md
index e99a914..b12af28 100644
--- a/docs/operations.md
+++ b/docs/operations.md
@@ -155,6 +155,40 @@ A node upgrades by restarting with its files. What to know:
(`automerge` in `--version`), and a release changing it says so in the change log.
* **The dashboard** reloads by itself once its node serves another version of it.
+## Moving to sets of events
+
+A swarm holding a store keeps it in the Automerge document, or in a document of the
+store's own kind, a set of events ([`document.md`](document.md),
+[A set of events](document.md#a-set-of-events)): no changes, writers, epochs or remakes,
+and nothing to compact but by the federation's checkpoints. A running swarm moves there
+node by node, the federation as it is: its root, its events and its votes are the same.
+
+Nodes on the document alone and nodes on a set alone don't sync with each other. Nodes
+of both kinds do with either, and carry between them, so move every node through that:
+
+1. **Every node on a release that has sets** (`--version` says wire versions up to 53
+ at least), one at a time, as any upgrade.
+2. **Every node of both kinds**, one at a time: start it again with `--store-document
+ PATH`, a new file, and `--store-both`, everything else as it was, its
+ `--document-file` and `--store-file` among it. It goes on with its document, makes
+ its set of the store it reads there, and keeps it in the file.
+3. **Every node on its set alone**, one at a time, once all are of both: start it
+ again without `--store-both`, `--document-file` and `--store-file`. It goes on from
+ the set's file.
+
+Between the steps, the swarm works as ever: an event put on any node reaches every
+node. Within a step, it works as long as the nodes of both kinds reach each other and
+every other node reaches one of them; `GET /events` on each node shows whether its
+store holds what the others' hold (`heads`).
+
+A node that joins later is given `--store-id`, `--store-document` and seeds: with
+nothing of the store, it asks the members it reaches for the root by its name, or, with
+`--store-checkpoint`, for that checkpoint.
+
+Don't remake while nodes are of both kinds: a node of both follows a remake as any node
+on the document, but that it then carries on between the two is not something a test
+covers.
+
## Behind a reverse proxy
The HTTP API speaks plain HTTP on `127.0.0.1:3000`; a reverse proxy in front adds TLS.