From 1e04f191a1cc2253f9c3cd484257af42efd09460 Mon Sep 17 00:00:00 2001 From: asvdf <91805022+asvdf@users.noreply.github.com> Date: Tue, 19 Apr 2022 20:20:10 +0200 Subject: [PATCH] Merge pull request #6402 from asvdf/master docs: warn about selecting synchronous replication mode [skip ci] --- docs/postgres.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/postgres.md b/docs/postgres.md index 16d0f0594..1a51f6ae0 100644 --- a/docs/postgres.md +++ b/docs/postgres.md @@ -41,3 +41,7 @@ db.postgres.timeout=0 ``` Connection timeout is disabled, to account for situations where the database might be slow for unexpected reasons. + +## Important note about replication + +In case a replication architecture is planned, streaming replication should be avoided, as the master does not verify the replica is indeed identical, but it will only forward the edits queue, and let the slave catch up autonomously; synchronous mode, albeit slower, is paramount for `lnd` data integrity across the copies, as it will finalize writes only after the slave confirmed successful replication.