Add durable shard mutation log storage
This commit is contained in:
parent
d73c3d26e8
commit
2ff82365cb
8 changed files with 367 additions and 52 deletions
|
|
@ -80,6 +80,13 @@ support weight, total observed weight, confidence, and quorum status.
|
|||
Those candidates are not committed world state by themselves. They are the fast
|
||||
mesh opinion layer that can feed an authoritative shard commit path.
|
||||
|
||||
## Durable Catch-Up
|
||||
|
||||
CultMesh can persist authoritative shard logs through
|
||||
`ICultNetShardMutationLogStore`. The included file store writes one MessagePack
|
||||
log per shard, so a restarted primary can still serve replica catch-up without
|
||||
depending on warm process memory.
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Public API](docs/public-api.md)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,10 @@ authoritative log arrives, the database emits `Reconciled`.
|
|||
### Replica Catch-Up
|
||||
|
||||
Shard logs can be requested over schema-v0 and applied by replicas. Replica
|
||||
cursors can be stored with `ICultNetShardReplicaCursorStore`.
|
||||
cursors can be stored with `ICultNetShardReplicaCursorStore`. Authoritative
|
||||
shard logs can be persisted with `ICultNetShardMutationLogStore`; the file
|
||||
implementation stores one MessagePack log per shard so catch-up survives a
|
||||
primary restart.
|
||||
|
||||
### Simulation Witness Consensus
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue