aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-12 21:59:02 +0000
committertv <tv@krebsco.de>2026-11-12 21:59:02 +0000
commit8daa8d67b2df3586efcfcae0f0e39b06fee1c5c8 (patch)
tree710e7ae950302d776e4ec9ef45cebc6acf04856d /src/state/host.rs
parent6bb6f99d744c7ef9aa18af33e0784f3d2536cbd8 (diff)
federation: a limit on the writers a user's nodes start
A writer (an Automerge actor) costs every node heap in proportion to the document's history: about 4 bytes per change, a slot in each clock Automerge 0.12 caches. A document of 10^5 changes takes 42 MB with 10 writers and 435 MB with 1000 (measured with Automerge alone). Screening counts no actors, so a party starting a writer with every change adds gigabytes to every node. `limits.writers` (256 recommended) bounds what a user's nodes start in an epoch, judged as a change's history shows, and a federated node keeps its writer over a clean stop. Out of each other's sight such writers are valid and held: the nodes that made them are refused as peers, a party's budget bounds how fast they came, a remake leaves them out. Not promised: a bound on what an epoch's document costs.
Diffstat (limited to 'src/state/host.rs')
0 files changed, 0 insertions, 0 deletions