From 99717e843524d66a6fa1d8590ce8c1fefff967a7 Mon Sep 17 00:00:00 2001 From: Dj Walker-Morgan Date: Fri, 6 Oct 2023 17:06:23 +0100 Subject: [PATCH] Expanded two phase commit entry. Signed-off-by: Dj Walker-Morgan --- product_docs/docs/pgd/5/terminology.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product_docs/docs/pgd/5/terminology.mdx b/product_docs/docs/pgd/5/terminology.mdx index 71d193981ab..2916d433a64 100644 --- a/product_docs/docs/pgd/5/terminology.mdx +++ b/product_docs/docs/pgd/5/terminology.mdx @@ -115,7 +115,8 @@ A PGD cluster is based around bidirectional replication, but in some use cases s #### Two-phase commit (2PC) -A multi-step process for achieving consistency across multiple database nodes. +A multi-step process for achieving consistency across multiple database nodes. A first phase sees a transaction prepared on an originating node and sent to all participating nodes. Each participating node validates that it can apply the transaction and +signals its readiness to the originating node. This is the pre-commit or prepare phase. In the second phase, if all the participating nodes signal they are ready, the originating node proceeds to committing the transaction and signal the participating nodes to commit too. This is the commit phase. If, in the pre-commit phase, any node signals it is not ready, the entire transaction is aborted. It's this process that ensures all nodes get the same changes. #### Vertical scaling or scale up