diff options
| author | tv <tv@krebsco.de> | 2026-11-12 21:59:02 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-12 21:59:02 +0000 |
| commit | 8daa8d67b2df3586efcfcae0f0e39b06fee1c5c8 (patch) | |
| tree | 710e7ae950302d776e4ec9ef45cebc6acf04856d /src/api/store.rs | |
| parent | 6bb6f99d744c7ef9aa18af33e0784f3d2536cbd8 (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/api/store.rs')
0 files changed, 0 insertions, 0 deletions
