Design 47 H2: H-A-636, a ledger's state and index buckets take the ledger's cap
This commit is contained in:
@@ -572,3 +572,16 @@ where the design and the code disagree; the lead's answers follow, each against
|
|||||||
that waits says where; principle 11: the bound is a setting; principle 7: a journal line in the passer, no new key or
|
that waits says where; principle 11: the bound is a setting; principle 7: a journal line in the passer, no new key or
|
||||||
event, since no other part acts on it). How it is checked: a unit row where a phase blocks past a short bound and the
|
event, since no other part acts on it). How it is checked: a unit row where a phase blocks past a short bound and the
|
||||||
journal line names that phase, and none is said for a pass that ends within it. Principles 3, 7 and 11.
|
journal line names that phase, and none is said for a pass that ends within it. Principles 3, 7 and 11.
|
||||||
|
- **H-A-636 (a ledger's state and index buckets take the ledger's cap, 01:31)** 24 Nov; answers the condition "Kept data is
|
||||||
|
filling up" of the delivery gate's records (open since 2026-11-23 10:20 CET): the gate's ledger asks `max-mib` 1024,
|
||||||
|
which sizes its history and its snapshot, while the bus module plans the ledger's state bucket and each index bucket
|
||||||
|
with no option (mesh-catalog modules/nats internal/keeper/plan.go, the ledger case, `stateSettings(options{})`), so
|
||||||
|
each is the state default of 64 MiB whatever the module asks; the gate's state bucket is full since 2026-11-23 11:48
|
||||||
|
UTC, its operations kept in the history and the state behind (ADR 0597 §6). The ledger's state bucket and its index
|
||||||
|
buckets take the ledger's own `max-mib`, as its history and snapshot do, through the existing `stateSettings` cap;
|
||||||
|
no other option of the ledger reaches them (principle 11: no cap fixed in code; principle 7: the entry's one existing
|
||||||
|
option, no new one). A raised cap reaches a held bucket through the keeper's existing path for larger settings, in
|
||||||
|
place, and the state catches up by replay (ADR 0597 §5). In the bus module (mesh-catalog). How it is checked: a row of
|
||||||
|
the keeper's plan tests (a ledger with `max-mib` 1024 plans its state and index buckets at 1 GiB, one with none at the
|
||||||
|
default); live, `mesh-broker.show` of the gate's records names its state bucket at 1 GiB and the condition clears.
|
||||||
|
Principles 7 and 11.
|
||||||
|
|||||||
Reference in New Issue
Block a user