diff options
| author | tv <tv@krebsco.de> | 2026-12-01 02:45:46 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 02:45:46 +0100 |
| commit | 34bfcb661ed74bf40809576bbb388362cb7ffaa1 (patch) | |
| tree | 8422db7db396dd4ae83403837cd954a94f882a7a /docs/operations.md | |
| parent | 34434f7fd5a6bab1884a63c96679f48045f4bffd (diff) | |
| parent | 6a06bc4a955cdf2b5a183c9ff21e25c79a4e5d9f (diff) | |
Diffstat (limited to 'docs/operations.md')
| -rw-r--r-- | docs/operations.md | 34 |
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. |
