aboutsummaryrefslogtreecommitdiffstats
path: root/docs/example.toml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-20 04:16:12 +0000
committertv <tv@krebsco.de>2026-11-20 05:29:48 +0100
commit7926a9764626878f5cc244286cce9eb502358929 (patch)
tree7ba6082872afd464490feb296c4f54afbc5c80a9 /docs/example.toml
parent00cac6466057c2a8a92dae9e4cd46369e72bcad9 (diff)
keep-actor by default: the writer kept across a clean stop, writes held till a sync
A node that stopped cleanly writes on as the writer of before, as `--keep-actor` had it, now by default: an epoch gathers a writer per node and per crash, drop or rejoin, not per start. `keep-actor = false`, in a configuration file, has a node write as a fresh writer each start; a node without a document file has nothing to keep, which is no longer an error. Writing on as the writer of before, a node holds its writes (`mutate_doc` and the API's through it) until it synced once with a ready neighbour, level with it, or 10 seconds passed (`AppState::hold_writes`, `KEPT_WRITER_WAIT`): a neighbour holding later changes of that writer, which a copy of the node's files made (a backup restored, a disk rolled back), hands them over first, and the node takes a fresh writer then, as it did. A node that reaches no neighbour within the wait writes on.
Diffstat (limited to 'docs/example.toml')
-rw-r--r--docs/example.toml16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/example.toml b/docs/example.toml
index 6a6f7b3..cdf942a 100644
--- a/docs/example.toml
+++ b/docs/example.toml
@@ -284,13 +284,15 @@ htpasswd = "/etc/continuum/htpasswd"
# document-rewrite = "1h"
# Resume writing as the actor this node wrote with before it stopped, if it stopped
-# cleanly (its document file holds everything it wrote then), instead of a fresh one:
-# an epoch then gathers a writer per node and per crash or drop rather than per start,
-# and every transfer of its history carries a signature per writer. Never start two
-# nodes from copies of one document file, nor a node from an older copy of its own (a
-# restored backup, a rolled-back disk): both would write as the same actor. Needs
-# document-file.
-# keep-actor = false
+# cleanly (its document file holds everything it wrote then), instead of a fresh one,
+# holding its writes until it synced once with a ready neighbour, or 10s passed: an
+# epoch then gathers a writer per node and per crash or drop rather than per start, and
+# every transfer of its history carries a signature per writer. A copy of the data
+# directory (two nodes from copies of one document file, a restored backup, a
+# rolled-back disk) writes as the same actor: a neighbour holding the other copy's later
+# changes hands them over within the wait, and the node takes a fresh actor. Without
+# document-file, nothing is kept.
+# keep-actor = true
# --- Timings and sizes -------------------------------------------------------------------
# Durations: seconds (30, 0.5) or with units (500ms, 30s, 1m, 1h30m, 7d).