Add shard log compaction boundary
This commit is contained in:
parent
2ff82365cb
commit
901e980ca6
9 changed files with 190 additions and 11 deletions
|
|
@ -85,7 +85,9 @@ mesh opinion layer that can feed an authoritative shard commit path.
|
|||
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.
|
||||
depending on warm process memory. When retained log history is compacted, stale
|
||||
replicas get an explicit resync requirement instead of a partial log pretending
|
||||
to be enough.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ Shard logs can be requested over schema-v0 and applied by replicas. Replica
|
|||
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.
|
||||
primary restart. Compacted history returns an explicit resync requirement so a
|
||||
replica can fall back to a snapshot before applying newer log entries.
|
||||
|
||||
### Simulation Witness Consensus
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue