docs: parallel WAL writes and delta shipping to replicas - #1746
Open
as51340 wants to merge 2 commits into
Open
Conversation
Document the new commit path on MAIN: the deltas of a transaction are encoded for every replica in parallel with MAIN's own WAL write, instead of the WAL write and each replica running in turn. - how-replication-works: new "Parallel WAL writes and delta shipping" section covering the durability gate, preserved per-replica ordering and WAL order, and per-replica failure containment; note that both 2PC phases fan out across STRICT_SYNC replicas; correct the ASYNC section, which claimed one background thread per replica. - best-practices: MAIN keeps two background threads per registered replica, so leave CPU headroom when registering many. - release-notes: v3.13.0 improvement entry for memgraph#4645.
as51340
requested review from
Josipmrden,
gitbuda and
vpavicic
as code owners
September 2, 2026 05:43
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release note
Commits on a MAIN instance with replicas are faster: MAIN now encodes a
transaction for every replica in parallel with writing its own WAL, instead of
doing the WAL write and each replica in turn. Commit latency no longer grows
linearly with the number of registered replicas. Durability still gates
replication — a replica only receives the transaction end after MAIN's WAL write
succeeded — and per-replica ordering, WAL order, and the reported SYNC /
STRICT_SYNC failures are unchanged. Each replica also gets a separate background
worker for state checks and recovery, so a long recovery no longer delays
replication of new transactions.
Related product PRs
Checklist:
bugfixorfeaturelabel, based on the product PR type you're documenting